Equinox Online Help - Language Reference - A to Z
UserPermission |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Applies to | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Syntax | UserPermission (PermNumberExpression) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Action | [Function] Returns True or False as to whether the user currently logged in has a particular permission. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Scope | Usable anywhere. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Notes | This function returns True if the current user has the permission whose number is in PermNumberExpression, otherwise False. The permission numbers are as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category | User, groups and ESS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also | ChangePassword, FirstUserGroup, FirstUserName, UserCreate, NextUserGroup, NextUserName, SetUserGroup, UserAccountExpiry, UserDelete, UserDetails, UserGroup, UserName, UserPasswordExpiry | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example | The following example determines whether the user who is currently logged in has permission to delete records via a button on a form. if not UserPermission(8) thenAlert "Sorry you are not allowed to delete Records."elseDeleteRecord trueend if |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||