mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
feat(ui): restrict views by role [EE-6595] (#11071)
This commit is contained in:
parent
fe6ed55cab
commit
165d6165dc
22 changed files with 338 additions and 83 deletions
|
@ -138,11 +138,6 @@ export function useIsEnvironmentAdmin({
|
|||
|
||||
/**
|
||||
* will return true if the user has the authorizations. assumes the user is authenticated and not an admin
|
||||
* @param user
|
||||
* @param authorizations
|
||||
* @param environmentId
|
||||
* @param adminOnlyCE
|
||||
* @returns
|
||||
*/
|
||||
function hasAuthorizations(
|
||||
user: User,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue