mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-05 17:00:03 +00:00
Level 1 users cannot edit or delete published posts. http://mosquito.wordpress.org/view.php?id=1004
git-svn-id: https://develop.svn.wordpress.org/trunk@2452 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -229,11 +229,6 @@ case 'edit':
|
||||
if( 'private' == $postdata->post_status && $postdata->post_author != $user_ID )
|
||||
die ( __('You are not allowed to view other users\' private posts.') );
|
||||
|
||||
if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) ) {
|
||||
_e('You are not allowed to edit published posts.');
|
||||
break;
|
||||
}
|
||||
|
||||
if ($post_status == 'static') {
|
||||
$page_template = get_post_meta($post_ID, '_wp_page_template', true);
|
||||
include('edit-page-form.php');
|
||||
|
||||
Reference in New Issue
Block a user