From 9716ff050edcbf1b6517eb1921efb70d137fba75 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:09:54 +0100 Subject: [PATCH] update maintenance permissions --- src/lib/features/maintenance/maintenance-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/features/maintenance/maintenance-controller.ts b/src/lib/features/maintenance/maintenance-controller.ts index f7db299245a9..71df5702ed0c 100644 --- a/src/lib/features/maintenance/maintenance-controller.ts +++ b/src/lib/features/maintenance/maintenance-controller.ts @@ -1,5 +1,5 @@ import { - NONE, + ADMIN, UPDATE_MAINTENANCE_MODE, type IUnleashConfig, type IUnleashServices, @@ -43,7 +43,7 @@ export default class MaintenanceController extends Controller { this.route({ method: 'post', path: '', - permission: UPDATE_MAINTENANCE_MODE, + permission: [ADMIN, UPDATE_MAINTENANCE_MODE], handler: this.toggleMaintenance, middleware: [ this.openApiService.validPath({ @@ -63,7 +63,7 @@ export default class MaintenanceController extends Controller { this.route({ method: 'get', path: '', - permission: NONE, + permission: [ADMIN, UPDATE_MAINTENANCE_MODE], handler: this.getMaintenance, middleware: [ this.openApiService.validPath({