Show profile to the right people

git-svn-id: http://svn.automattic.com/wordpress/trunk@2764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-08 07:38:41 +00:00
parent 887422e56f
commit 08b3dc28a4
1 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,11 @@ $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');
$menu[20] = array(__('Links'), 'manage_links', 'link-manager.php');
$menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php');
$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
$menu[35] = array(__('Users'), 'read', 'profile.php');
$menu[40] = array(__('Options'), 'read', 'options-personal.php');
if ( current_user_can('edit_users') )
$menu[35] = array(__('Users'), 'read', 'profile.php');
else
$menu[35] = array(__('Profile'), 'read', 'profile.php');
$menu[40] = array(__('Options'), 'read', 'options-personal.php');-
if ( get_option('use_fileupload') )
$menu[45] = array(__('Upload'), 'upload_files', 'upload.php');