Skip to content

Commit

Permalink
update maintenance permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Nov 29, 2024
1 parent c908d6b commit 9716ff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/features/maintenance/maintenance-controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
NONE,
ADMIN,
UPDATE_MAINTENANCE_MODE,
type IUnleashConfig,
type IUnleashServices,
Expand Down Expand Up @@ -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({
Expand All @@ -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({
Expand Down

0 comments on commit 9716ff0

Please sign in to comment.