User permission doesn't appear in WP2.6

3 months ago | sandaniele (Member) | |

I-ve activated the user permissions but it does not appear when creating/modifying posts&pages.
I have installed WP2.6, Role Manager plugin, Akismet plugin, cFormsII, Google XML Sitemap.
Any idea? Do I have to check something in some php source? what?
thanks

Read responses...

Responses

  1. sandaniele:

    Posted 3 months ago by Member

    sorry, forgot to mention the version: the user permissions version is 0.8.1. :)

  2. John:

    Posted 3 months ago by Key Master

    No, there is nothing else you need to do. Sorry, but due to lack of time I'm no longer supporting this plugin. If you can get it working then great.

  3. sandaniele:

    Posted 3 months ago by Member

    Solved.
    I should create a new capability "Edit Permissions" and assign it to the permissions of the users, included the administrator.

    I've found, a "bug" in the models/permissions.php, function "get".
    the row:
    $data = unserialize ($row->meta_value);

    must be converted in
    $data = unserialize (stripslashes($row->meta_value));

    if the user has a in the php configuration the "magic_quotes_gpc" enabled.
    Or better would be to change the "save" section.

    If you want to check it...

    Now, the user permissions works perfectly.

    bye

  4. sandaniele:

    Posted 3 months ago by Member

    Another issue was that renaming the roles of users in another language, this will make not run correctly the
    models/permissions.php:

    function can_restrict ()
    {
    if (current_user_can ('administrator') || current_user_can ('edit_permissions'))
    return true;
    return false;
    }

    So creating a "Edit Permissions" to assign to the roles that must have it.... solves the problem.

  5. John:

    Posted 3 months ago by Key Master

    Thanks. I'll include this in the plugin and release it for other people.

Reply

You must log in to post.

Home | Software | Terms & Conditions | Sitemap | John Godley © 2008