From 08b3dc28a4b65486b076e6f2dcd45ebfe9b35d06 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 8 Aug 2005 07:38:41 +0000 Subject: [PATCH] Show profile to the right people git-svn-id: http://svn.automattic.com/wordpress/trunk@2764 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index ae890545cd..3a0edbecb5 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -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');