Changeset 15478 for branches/3.0/wp-includes/capabilities.php
- Timestamp:
- 07/29/2010 09:54:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/capabilities.php
r15403 r15478 813 813 case 'edit_users': 814 814 // If multisite these caps are allowed only for super admins. 815 if ( is_multisite() && !is_super_admin( ) )815 if ( is_multisite() && !is_super_admin( $user_id ) ) 816 816 $caps[] = 'do_not_allow'; 817 817 else … … 992 992 break; 993 993 case 'unfiltered_upload': 994 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( ) ) )994 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin( $user_id ) ) ) 995 995 $caps[] = $cap; 996 996 else … … 1029 1029 case 'delete_users': 1030 1030 // If multisite these caps are allowed only for super admins. 1031 if ( is_multisite() && !is_super_admin( ) )1031 if ( is_multisite() && !is_super_admin( $user_id ) ) 1032 1032 $caps[] = 'do_not_allow'; 1033 1033 else
Note: See TracChangeset
for help on using the changeset viewer.