From 343a857a2d4922057f1e482bf1c69ce1c725029a Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:21:38 +0100 Subject: [PATCH] feat: read logs and update cors maintenance root-role permissions --- src/lib/types/permissions.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/types/permissions.ts b/src/lib/types/permissions.ts index d179e93f8833..f0a60aee1ba0 100644 --- a/src/lib/types/permissions.ts +++ b/src/lib/types/permissions.ts @@ -41,8 +41,10 @@ export const CREATE_TAG_TYPE = 'CREATE_TAG_TYPE'; export const UPDATE_TAG_TYPE = 'UPDATE_TAG_TYPE'; export const DELETE_TAG_TYPE = 'DELETE_TAG_TYPE'; +export const READ_LOGS = 'READ_LOGS'; export const UPDATE_MAINTENANCE_MODE = 'UPDATE_MAINTENANCE_MODE'; export const UPDATE_INSTANCE_BANNERS = 'UPDATE_INSTANCE_BANNERS'; +export const UPDATE_CORS = 'UPDATE_CORS'; export const UPDATE_AUTH_CONFIGURATION = 'UPDATE_AUTH_CONFIGURATION'; // Project @@ -147,7 +149,12 @@ export const ROOT_PERMISSION_CATEGORIES = [ }, { label: 'Instance maintenance', - permissions: [UPDATE_MAINTENANCE_MODE, UPDATE_INSTANCE_BANNERS], + permissions: [ + READ_LOGS, + UPDATE_MAINTENANCE_MODE, + UPDATE_INSTANCE_BANNERS, + UPDATE_CORS, + ], }, { label: 'Authentication',