mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* Fetch the userInfo once loggedIn and expose the cabilibility of admin * Rollback method * Return same use if defined * Use the same pepleContent service for UserInfoCOmpnent * Remove useless import * Use interface * Use angular resolver instead of guard * Remove fdescribe * Fix linting * Regenerate doc * Improve doc * Fix optional * Fix the unit test * Fix comment * Fix lint * Fix unit * Add fetch user as part of the ssoGuard * Fix unit test after fetch * Add additional unit * Fix await
1.2 KiB
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- Returns
Promise
<void>
-
- Returns
- 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
- appName:
- 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
- rolesToCheck:
- resetAccess()
Resets the cached user access