Changeset 5329 for trunk/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 11/14/2011 05:19:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-admin.php
r4939 r5329 10 10 * @global object $bp Global BuddyPress settings object 11 11 * @global $wpdb WordPress DB access object. 12 * @uses is_super_admin() returns true if the current user is a site admin, false if not12 * @uses bp_current_user_can() returns true if the current user is a site admin, false if not 13 13 * @uses bp_xprofile_install() runs the installation of DB tables for the xprofile component 14 14 * @uses wp_enqueue_script() Adds a JS file to the JS queue ready for output … … 20 20 global $wpdb, $bp; 21 21 22 if ( ! is_super_admin() )22 if ( !bp_current_user_can( 'bp_moderate' ) ) 23 23 return false; 24 24
Note: See TracChangeset
for help on using the changeset viewer.