mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Rationalize menu access levels. Submenus should have an access level greater than or equal to its parent. Require level 8 for all file editing pages.
git-svn-id: https://develop.svn.wordpress.org/trunk@1924 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -83,8 +83,8 @@ $edituser = get_userdata($user_id);
|
||||
if ($edituser->user_level >= $user_level) die( __('You do not have permission to edit this user.') );
|
||||
?>
|
||||
<ul id="adminmenu2">
|
||||
<li><a href="profile.php"><?php _e('Your Profile') ?></a></li>
|
||||
<li><a href="users.php" class="current"><?php _e('Authors & Users') ?></a></li>
|
||||
<li><a href="profile.php"><?php _e('Your Profile') ?></a></li>
|
||||
</ul>
|
||||
|
||||
<?php if ( isset($_GET['updated']) ) : ?>
|
||||
|
||||
Reference in New Issue
Block a user