Opened 12 years ago
Closed 12 years ago
#1722 closed defect (bug) (fixed)
plugin: roles missing after switch_to/restore blog
Reported by: | MrMaz | Owned by: | |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Component - Users | Keywords: | |
Cc: |
Description
AFAIK this only applies to the plugin version.
Since switch_to_blog() reloads user roles to match the new blog id, and reverts them on restore_current_blog(), the special bbPress role masks are not re-applied.
I fixed this in my app by running bbp_global_access_role_mask() manually, although I'm not sure if there are other role setup items that should be run as well.
It might be a good idea to hook the role mask functionality into 'switch_blog' in addition to the initialization routine.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Most likely related to #1693.