WordPress.org

Ready to get started?Download WordPress

Forums

att.Podz. Re-user levels (3 posts)

  1. ronco
    Member
    Posted 10 years ago #

    Hi, wondering if you can clear this up for me. I saw your reply to the post on user levels - I have created two level 1 users and, when I go to "view", I find that they can edit each others posts if they click on "edit this", which is available, even though they are only level 1 users. Is this supposed to happen or have I forgotten to set something in the options? If they simply go to the members area and select "edit", only their own posts are available for editing. It works fine if I assign them different levels, ie. level 2 can edit level 1 but not vice versa. Can you follow all that?! Any ideas?

  2. ronco
    Member
    Posted 10 years ago #

    Thanks Podz, you have summed up exactly what's happening, level 1 users being able to do 2 different things, depending what screen they are on. I'll pass this on to Laughing Lizard who has been able to help me out this far.
    At this stage, the users are just ones I've invented and, yes, I would always be careful about who I assigned permissions to.
    Cheers

  3. debwire
    Member
    Posted 10 years ago #

    Is this function suffering from the same bug?

    function edit_comment_link($link = 'Edit This', $before = '', $after = '') {
    global $user_level, $post, $comment, $siteurl;
    get_currentuserinfo();
    if ($user_level > 0) {
    $authordata = get_userdata($post->post_author);
    if ($user_level < $authordata->user_level) {
    return;
    }
    } else {
    return;
    }
    $location = "$siteurl/wp-admin/post.php?action=editcomment&comment=$comment->comment_ID";
    echo "$before $link $after";

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.