diff --git a/frontend/src/hooks/api/getters/useAuth/useAuthPermissions.ts b/frontend/src/hooks/api/getters/useAuth/useAuthPermissions.ts index 47b4849b16..0e70b12a26 100644 --- a/frontend/src/hooks/api/getters/useAuth/useAuthPermissions.ts +++ b/frontend/src/hooks/api/getters/useAuth/useAuthPermissions.ts @@ -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' ); diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 11158ac770..0068415fc4 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -41,6 +41,7 @@ export interface IFlags { variantsPerEnvironment?: boolean; networkView?: boolean; maintenance?: boolean; + maintenanceMode?: boolean; messageBanner?: boolean; serviceAccounts?: boolean; featuresExportImport?: boolean;