Changeset 46279 for add-local-avatar

Show
Ignore:
Timestamp:
05/16/08 16:35:34 (2 months ago)
Author:
peterwsterling
Message:

only administrators can manage avatars

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • add-local-avatar/trunk/avatars.php

    r44923 r46279  
    55      Description:      A plugin to manage public and private avatars. 
    66      Author:                 Peter Sterling 
    7       Version:          4.2 
     7      Version:          5.0 
    88      Changes:          0.1 - Initial version. 
    99                              1.0 - Added pagination of users list. 
     
    1717                              4.1 - Author credit. 
    1818                              4.2 - Fix for credit option un-setting. 
     19                              5.0 - Avatar options should only be managed by Administrators. 
    1920      Author URI:       http://www.sterling-adventures.co.uk/ 
    2021*/ 
     
    422423// Add sub-menus... 
    423424function avatar_menu() { 
    424       add_users_page('Avatars', 'Avatars', 1, basename(__FILE__), 'manage_avatar_cache'); 
     425      if(current_user_can('manage_options')) add_users_page('Avatars', 'Avatars', 1, basename(__FILE__), 'manage_avatar_cache'); 
    425426} 
    426427