Ticket #2210: 2210.01.patch
File 2210.01.patch, 598 bytes (added by , 8 years ago) |
---|
-
src/includes/users/capabilities.php
359 359 // Get the current user's WordPress role. Set to empty string if none found. 360 360 $user_role = bbp_get_user_blog_role( $user_id ); 361 361 362 // If no WordPress role, add default WordPress role. 363 if ( false === $user_role ) { 364 $user_role = get_option( 'default_role' ); 365 $bbp->current_user->add_role( $user_role ); 366 } 367 362 368 // Get the role map 363 369 $role_map = bbp_get_user_role_map(); 364 370