To return Yes (true) if the current user has the admin role
With this function, you can check if the current user's role is admin, that is, if they have admin rights.
Adding this function to Display only, if the respective field is only visible to users with an admin role.
userIsAdmin()
boolean
Result: Yes (true
) (if the current user has admin rights)
userRole
, which returns the role of a user.