new UserModel()
- Source:
The User model handles the database of users (members) who can log into the system
Extends
Methods
(async) aclHasPermission(permission, objectTypeopt, objectIdopt)
- Source:
Check if user has the permission on the object (or all objects of this type)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
permission |
string | |||
objectType |
string |
<optional> |
null
|
|
objectId |
string |
<optional> |
null
|
Returns:
true if they have permission
(async) aclHasPermissionOnAll(permission, objectType, objectIdList)
- Source:
Check if user has permission to do the operation on ALL ids in the objectIdList
Parameters:
Name | Type | Description |
---|---|---|
permission |
string | |
objectType |
string | |
objectIdList |
array |
Returns:
true if they have permission
(async) aclHasPermissionSeeVDeletes(modelClass)
- Source:
Return true if user has permission to see virtually deleted items on a model
Parameters:
Name | Type | Description |
---|---|---|
modelClass |
* |
Returns:
true if they have permission