Get details of a User Level in Code
-
I was wondering if there is a way to get the details of the user level in code.
I have a Rule which restricts categories for a user level.
E.g. Sam is a member of the “HR-Access” rule. The “hr-access” rule can see the taxonomy “payroll”.
What I’d like to do is when listing all the taxonomies, I’d like to see all the condition groups. If a user has access to a piece of content, I want to display is normally, otherwise, I want to add a CSS class.
what I’d love to see is rua_get_access_level($id) which returned an array of condition groups. I’ve been looking into the SQL to figure out how it’s stored in the database, but I haven’t quite cracked the nut. If I had a little insight perhaps into where the details of the condition_group are stored, that would be a great help! Thanks!
- The topic ‘Get details of a User Level in Code’ is closed to new replies.