Changeset 5908 for trunk/src/includes/users/capabilities.php
- Timestamp:
- 08/11/2015 08:17:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/capabilities.php
r5834 r5908 365 365 366 366 // Use a mapped role 367 if ( isset( $role_map[ $user_role] ) ) {368 $new_role = $role_map[ $user_role];367 if ( isset( $role_map[ $user_role ] ) ) { 368 $new_role = $role_map[ $user_role ]; 369 369 370 370 // Use the default role … … 385 385 // Don't add the user, but still give them the correct caps dynamically 386 386 } else { 387 $bbp->current_user->caps[ $new_role] = true;387 $bbp->current_user->caps[ $new_role ] = true; 388 388 $bbp->current_user->get_role_caps(); 389 389 }
Note: See TracChangeset
for help on using the changeset viewer.