mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
parent
fa47fee55e
commit
3a25b5f2db
@ -18,7 +18,11 @@ const getPermissions = (
|
||||
auth.data && 'permissions' in auth.data
|
||||
? auth.data.permissions
|
||||
: undefined;
|
||||
if (permissions && uiConfig?.flags?.maintenance) {
|
||||
if (
|
||||
permissions &&
|
||||
uiConfig?.flags?.maintenance &&
|
||||
uiConfig?.flags?.maintenanceMode
|
||||
) {
|
||||
permissions = permissions.filter(
|
||||
permission => permission.permission === 'ADMIN'
|
||||
);
|
||||
|
@ -41,6 +41,7 @@ export interface IFlags {
|
||||
variantsPerEnvironment?: boolean;
|
||||
networkView?: boolean;
|
||||
maintenance?: boolean;
|
||||
maintenanceMode?: boolean;
|
||||
messageBanner?: boolean;
|
||||
serviceAccounts?: boolean;
|
||||
featuresExportImport?: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user