Make WordPress Core

Changeset 2453


Ignore:
Timestamp:
03/17/2005 03:39:02 AM (20 years ago)
Author:
ryan
Message:

Level 1 users cannot edit or delete published posts. http://mosquito.wordpress.org/view.php?id=1004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r2442 r2453  
    355355    $post_author_data = get_userdata($post_data['Author_ID']);
    356356
    357     if ( ($user_id == $post_author_data->ID)
     357    if ( (($user_id == $post_author_data->ID) && !($post_data['post_status'] == 'publish' &&  $author_data->user_level < 2))
    358358         || ($author_data->user_level > $post_author_data->user_level)
    359359         || ($author_data->user_level >= 10) ) {
Note: See TracChangeset for help on using the changeset viewer.