0
userIsAdmin
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.
Syntax
userIsAdmin()
Return
boolean
Example
userIsAdmin()
Result: Yes (true
) (if the current user has admin rights)
See also
userRole
which returns the role of a user.
Reply
Related articles
Content aside
- 2 mths agoLast active
- 17Views
-
1
Following