1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Maintenance mode fix (#2876)

Maintenance mode fix
This commit is contained in:
sjaanus 2023-01-11 14:56:55 +02:00 committed by GitHub
parent fa47fee55e
commit 3a25b5f2db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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'
);

View File

@ -41,6 +41,7 @@ export interface IFlags {
variantsPerEnvironment?: boolean;
networkView?: boolean;
maintenance?: boolean;
maintenanceMode?: boolean;
messageBanner?: boolean;
serviceAccounts?: boolean;
featuresExportImport?: boolean;