- hasAccess(required: Permission | Permission[], anyOfRequired?: boolean): ((userPermissions: Permission[]) => boolean)
-
Parameters
-
-
anyOfRequired: boolean = false
Returns ((userPermissions: Permission[]) => boolean)
-
- (userPermissions: Permission[]): boolean
-
Returns boolean
Checks if the user has the permission to perform the action