2.4: change dpa_permission_can_user_grant
-
Hello-
On line 1951 of achievements-templatetags.php, can this be adjusted to allow super admins & a user of username “badgesadmin” to get grant privileges?
/** * Does the user have the capability to grant Achievements to other users? * * @since 2.0 * @global object $bp BuddyPress global settings * @return bool */ function dpa_permission_can_user_grant() { global $bp; if ( !$bp->loggedin_user->id ) return false; if ( $bp->loggedin_user->is_super_admin ) return true; return apply_filters( 'dpa_permission_can_user_grant', current_user_can( 'achievements_grant' ) ); }
Tried a few things without any success, probably because my php skills need significant upgrades :/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘2.4: change dpa_permission_can_user_grant’ is closed to new replies.