Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/21/2012 06:40:18 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Remove roles and move everything to mapped capabilities.
  • First pass at admin-side forum capability manager.
  • Deprecate moderator, anonymous, and participant roles and associated functions.
  • Deprecate add/remove role/cap functions.
  • More cap mapping needed for users that are not explicitly blocked.
  • Adds cap check to forms for topic-tag adding/editing.
  • See #1939
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-user-functions.php

    r4141 r4164  
    13861386
    13871387        // Get the user's main role
    1388         $role = isset( $user->roles ) ? array_shift( $user->roles ) : bbp_get_anonymous_role();
     1388        $role = isset( $user->roles ) ? array_shift( $user->roles ) : '';
    13891389
    13901390        return apply_filters( 'bbp_get_user_role', $role, $user_id, $user );
Note: See TracChangeset for help on using the changeset viewer.