mirror of https://github.com/portainer/portainer
fix(auth): export hasAuthorizations [EE-6595] (#11199)
parent
f5f84c5fa4
commit
7b89b04667
|
@ -139,7 +139,7 @@ export function useIsEnvironmentAdmin({
|
|||
/**
|
||||
* will return true if the user has the authorizations. assumes the user is authenticated and not an admin
|
||||
*/
|
||||
function hasAuthorizations(
|
||||
export function hasAuthorizations(
|
||||
user: User,
|
||||
authorizations: string | string[],
|
||||
environmentId?: EnvironmentId
|
||||
|
|
Loading…
Reference in New Issue