Function useHasPermissions
- useHasPermissions(): ((requiredPermissions) => Promise<boolean>)
-
Returns ((requiredPermissions) => Promise<boolean>)
-
- (requiredPermissions): Promise<boolean>
-
Parameters
-
requiredPermissions: {
[serviceId: string]: string[];
}
-
[serviceId: string]: string[]
Returns Promise<boolean>
Checks whether the current user has the permissions specified as
requiredPermissions
.