Make WordPress Core


Ignore:
Timestamp:
07/11/2005 10:39:50 PM (19 years ago)
Author:
ryan
Message:

Role/capability system. Round one. Props: Owen Winkler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2702 r2703  
    6767    $post_ID = $p = (int) $_GET['post'];
    6868
    69     if ( !user_can_edit_post($user_ID, $post_ID) )
     69    if ( !current_user_can('edit_post', $post_ID) )
    7070        die ( __('You are not allowed to edit this post.') );
    7171
Note: See TracChangeset for help on using the changeset viewer.