Skip to:
Content

bbPress.org

Changeset 4206


Ignore:
Timestamp:
09/06/2012 06:42:47 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Use current_user_can( 'read' ) instead of is_user_member_of_blog() in bbp_set_current_user_default_role().
  • Fixes issue where auto-role would not apply on single site, or multisite if user had orphaned caps.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/bbp-core-caps.php

    r4186 r4206  
    773773
    774774    // Bail if not logged in or already a member of this site
    775     if ( ! is_user_logged_in() || is_user_member_of_blog() )
     775    if ( ! is_user_logged_in() || current_user_can( 'read' ) )
    776776        return;
    777777
Note: See TracChangeset for help on using the changeset viewer.