WordPress.org

Ready to get started?Download WordPress

Forums

2 users with same level can't edit eachothers pages /posts ? (3 posts)

  1. Percept
    Member
    Posted 8 years ago #

    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.

  2. heyrsmith
    Member
    Posted 8 years ago #

    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.

  3. EcoGraphic
    Member
    Posted 7 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags