Support » Fixing WordPress » att.Podz. Re-user levels

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ronco

    (@ronco)

    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

    debwire

    (@debwire)

    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”;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘att.Podz. Re-user levels’ is closed to new replies.