Opened 15 years ago
Closed 15 years ago
#1722 closed defect (bug) (fixed)
plugin: roles missing after switch_to/restore blog
| Reported by: | MrMaz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Component - Users | Version: | 2.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Most likely related to #1693.