Skip to:
Content

bbPress.org

Ticket #2005: super-admin-patch.patch

File super-admin-patch.patch, 480 bytes (added by 082net, 9 years ago)
  • bbp-includes/bbp-core-caps.php

     
    541541                return;
    542542
    543543        // Give the user the 'Forum Participant' role
    544         if ( current_user_can( 'bbp_masked' ) ) {
     544        if ( !is_super_admin() && current_user_can( 'bbp_masked' ) ) {
    545545
    546546                // Get the default role
    547547                $default_role = bbp_get_participant_role();