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:
Ryan Boren
2004-12-08 22:32:49 +00:00
parent 22781af5ee
commit 51602443ca
3 changed files with 16 additions and 21 deletions

View File

@@ -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 &amp; Users') ?></a></li>
<li><a href="profile.php"><?php _e('Your Profile') ?></a></li>
</ul>
<?php if ( isset($_GET['updated']) ) : ?>