Changeset 2764

Show
Ignore:
Timestamp:
08/08/05 07:38:41 (3 years ago)
Author:
matt
Message:

Show profile to the right people

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/menu.php

    r2760 r2764  
    1111$menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php'); 
    1212$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 
    13 $menu[35] = array(__('Users'), 'read', 'profile.php'); 
    14 $menu[40] = array(__('Options'), 'read', 'options-personal.php'); 
     13if ( current_user_can('edit_users') ) 
     14    $menu[35] = array(__('Users'), 'read', 'profile.php'); 
     15else 
     16    $menu[35] = array(__('Profile'), 'read', 'profile.php'); 
     17$menu[40] = array(__('Options'), 'read', 'options-personal.php');- 
    1518 
    1619if ( get_option('use_fileupload') )