Role Manager custom role and using level_X
I made a new role in Role Manager called Premium with user level of 1. I’m trying to limit access to certain forms on the site to users with specific user levels, but using current_user_can(‘level_XX’) only returns true on the Premium users specific role, ie:
checking current_user_can(‘level_1’) on my Premium user returns TRUE
checking current_user_can(‘level_0’) returns nothing.
So if a form element has allows access to level_0 or greater, the Premium user will not see it. This seems like an issue with Role Manager. Is there a way to fix this or work around it?
PS I know user levels have been deprecated, but I’m really looking for the ability to allow access to users with a certain level OR GREATER. And I need this custom role for a client site.
- The topic ‘Role Manager custom role and using level_X’ is closed to new replies.