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

© 2023 Alfresco Software, Inc. All Rights Reserved.