• Hi,

    I’m running WP1.5 with 3 users:

    admin (lvl 10)
    user1 (lvl 9)
    user2 (lvl 9)

    If user1 creates a page, user2 can’t edit it eventough they have the same userlevel ? How can I make it so user1 &user2 canedit each others pages ?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In wp-includes > functions-post.php:
    Starting at line 352 change from:

    if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
    || ($author_data->user_level > $post_author_data->user_level)
    || ($author_data->user_level >= 10) ) {
    return true;
    } else {
    return false;
    }

    to this:

    if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
    || ($author_data->user_level >= $post_author_data->user_level)
    || ($author_data->user_level >= 10) ) {
    return true;
    } else {
    return false;
    }

    Notice the change from “>” to “>=” in line 353.

    Try the Role Manager plugin from RedAlt. It allows you to customize settings for different levels. Very easy to use.

    https://www.redalt.com/wiki/Role+Manager

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 users with same level can’t edit eachothers pages /posts ?’ is closed to new replies.