Skip to Main Content
Categories Expression Engine
Created by Mark Stuart-Walker
Created on Jan 2, 2025

Expression Engine USERROLE() function

Please, fill in the below fields to enable the processing of your idea.

Who would benefit?

Anyone wanting to control field value or access with the user role

What impact would it make?

More flexible approach then restricted fields

How should it work?

=USERROLE("Role1", "Role2") would return true if the current user has at least one of the listed roles


Why is it needed?

To replace the static restricted fields approach


Combine with my READONLY() function to control access


  • Attach files
  • Tobias Månsson
    Reply
    |
    Jan 14, 2025

    I don't understand this idea. What should be the outcome of the function USERROLE ? And why do you need it? If you want to restrict users for expression engine fields, I think inriver needs to implement support for that in the core, not apply it as a function.