Files
alfresco-ng2-components/docs/core/services/user-access.service.md
Eugenio Romano 2590e7d0a9 [AAE-10777] Move services from Core in Content the right place (#8242)
Clean core services and directive
2023-03-10 09:28:24 +01:00

1.2 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
User access service v1.0.0 Active 2022-06-05

User access service

Checks the global and application access of a user

Class members

Methods

  • fetchUserAccess(): Promise<void>
    Fetches the global and application access of the user
  • hasApplicationAccess(appName: string, rolesToCheck: string[]): boolean
    Checks for global roles access.
    • appName: string - The app name
    • rolesToCheck: string[] - List of the roles to check
    • Returns boolean - True if it contains at least one of the given roles, false otherwise
  • hasGlobalAccess(rolesToCheck: string[]): boolean
    Checks for global roles access.
    • rolesToCheck: string[] - List of the roles to check
    • Returns boolean - True if it contains at least one of the given roles, false otherwise
  • resetAccess()
    Resets the cached user access