hasPermission(permission) checks if a user has the specified
permission on a node.
The default permissions are in org.alfresco.service.cmr.security.PermissionService. The most commonly used permission checks are:
- Read
- Write
- Delete
- AddChildren
- CreateChildren
Parameters
- permission
- The specified permission
Returns
Returns true if the user has the specified permission on the node.