WordPress.org

Forums

I have a problem. People who has the same level wi (4 posts)

  1. jnut
    Member
    Posted 11 years ago #


    if ($user_level < $authordata->user_level)
    die ('You don’t have the right to edit '.$authordata[1].'’s posts.');

    It seem as that, people can edit posts each other if they have same level.
    Really?

  2. jnut
    Member
    Posted 11 years ago #

    I think it should be:

    if (!($user_level > $authordata->user_level or $user_login==$authordata->user_login))

  3. Anonymous
    Unregistered
    Posted 11 years ago #

    I am new at a live WP installation at least. Have I got this right? Is it possible for any reader to edit the posts unless we have hacked the code ourselves?

  4. Anonymous
    Unregistered
    Posted 11 years ago #

    Shouldn't the $user_login be $user_ID? Otherwise I can change the name in my profile and "masquerade" as some else...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.