#1939 closed enhancement (fixed)
Capabilities clean-up, admin-side cap UI, deprecate roles
Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Component - Users | Keywords: | |
Cc: | stephen@… |
Description
The code to add/remove roles and capabilities is clumsy, making it impossible to adapt bbPress to an existing installations userbase without making decisions on what users will play what roles.
A few things need to happen:
- Deprecate adding/removing of roles and capabilities
- Map all capabilities as needed
- Create UI to assign/remove capabilities per user
- Deprecate and remove all associated code
Change History (56)
#4
@
12 years ago
Forgot I had created this ticket. Please see the following changesets for work done on this ticket:
- r4164, r4165, r4168, r4172, r4179, r4180, r4182, r4185, r4186, r4192, r4206, r4207, r4222, r4236, r4244.
The end result is that users with edit_user(s) cap are now presented with a UI for selectively enabling/disabling bbPress capabilities. The Forum Participant and Forum Moderator roles are gone, as is the fake Anonymous role. A large majority of the role code is deprecated.
Left to do:
- Map remaining caps in core/capabilities.php.
- Deprecate functions used for adding those caps to all existing roles.
#34
@
12 years ago
- Resolution set to fixed
- Status changed from new to closed
Marking as closed. Feature is complete. Any issues related to roles and capabilities should have their own new tickets.
#46
@
12 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Unable to deactivate bbPress plugin
Fatal error: Call to undefined method stdClass::add_role() in /home/mysite/public_html/wp-content/plugins/bbpress/includes/users/capabilities.php on line 216
http://bbpress.trac.wordpress.org/browser/trunk/includes/users/capabilities.php#L216
Haven't wrapped my head around (inside?) caps yet, thus no patch ;)
#53
@
12 years ago
(In [4371]) Capabilities:
- Hook bbp_set_current_user_default_role() to 'switch_blog'
- Fixes bug where mapped forums role was lost on multisite when WP_Admin_Bar::initialize() would switch to a blog that a user is a member of, if the user was viewing a forum on a site they do not have a role on.
- See #1939.
(In [4164]) Capabilities: