From e2f10eb555b211c232aafc675d02b8ec86078225 Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Fri, 23 Oct 2026 14:15:40 +0100 Subject: [PATCH] fix: Correct sysadmin prop constant names --- src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py b/src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py index fd458b53..da3a7fe4 100644 --- a/src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py +++ b/src/WebAppDIRAC/WebApp/handler/SystemAdministrationHandler.py @@ -124,7 +124,7 @@ def web_getHostLog(self, host=None, system=None, component=None): return {"success": "true", "result": log.replace("\n", "
")} - @authorization([Properties.CSAdministrator, Properties.ServiceAdministrator]) + @authorization([Properties.CS_ADMINISTRATOR, Properties.SERVICE_ADMINISTRATOR]) def web_hostAction(self, host=None, action=None, version=None): """ Restart all DIRAC components on a given host @@ -170,7 +170,7 @@ def web_hostAction(self, host=None, action=None, version=None): return self.aftermath(actionSuccess, actionFailed, action, "Host") - @authorization([Properties.CSAdministrator, Properties.ServiceAdministrator]) + @authorization([Properties.CS_ADMINISTRATOR, Properties.SERVICE_ADMINISTRATOR]) def web_componentAction(self, action=None, **kwargs): """ Actions which should be done on components. The only parameters is an action