Problem with multiple roles
-
We use the Multiple Roles plugin on one of our websites. The reason for this is, we have about 20 custom post types, each with mapped meta caps, so that users can log in and only access their designated CPTs.
Sometimes – for example, when an employee leaves and we need to designate an interim editor – one user needs access to multiple CPTs. In this case, it is much easier to give that person multiple roles – one for each CPT – than it would be to create a new custom role that gives them all the capabilities for editing/publishing/etc. a group of CPTs.
All of the users on this site log in using Authorizer with CAS. Most of the time this works just fine. However, once in awhile I get a call that a user has logged into the site and receives a “Sorry, you’re not allowed to access this page” message. When I check that user, they have lost all of their roles – Authorizer’s dashboard widget says their role is “No role for this site” and the WP user management screen just has a “-” dash in the Roles column. I edit the user in the native user editing screen, giving them back however many roles they need. The Authorizer dashboard widget then shows them as approved in one of these roles, and they can log in and access all of the CPTs they need, with all the correct roles and capabilities.
I’m having trouble figuring out exactly when and how they lose their roles in the first place, but since this is only happening for users who are assigned multiple roles, there seems to be a conflict between Authorizer and Multiple Roles.
I’m happy to provide whatever additional details I can offer.
- The topic ‘Problem with multiple roles’ is closed to new replies.