From 7d4d13d9f29da5f49afcbea88771997c343c000c Mon Sep 17 00:00:00 2001 From: Bastien Beuchat Date: Thu, 28 Nov 2024 19:34:36 +0100 Subject: [PATCH] [CLOUDTRUST-5583] Add authorizations for mailing service (#143) --- security/authorization.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/security/authorization.go b/security/authorization.go index 2db046b..85a841b 100644 --- a/security/authorization.go +++ b/security/authorization.go @@ -33,6 +33,7 @@ const ( SignatureService VoucherService AccreditationService + MailingService ) // API type @@ -275,4 +276,10 @@ var ( ACCRGetAccreditationGroups = Actions.addAction(AccreditationService, ManagementAPI, "ACCR_GetAccreditationGroups", ScopeGroup) ACCREnableAccreditationForGroup = Actions.addAction(AccreditationService, ManagementAPI, "ACCR_EnableAccreditationForGroup", ScopeGroup) ACCRDisableAccreditationForGroup = Actions.addAction(AccreditationService, ManagementAPI, "ACCR_DisableAccreditationForGroup", ScopeGroup) + + MAILGetActions = Actions.addAction(MailingService, ManagementAPI, "MAIL_GetActions", ScopeGlobal) + MAILGetJobs = Actions.addAction(MailingService, ManagementAPI, "MAIL_GetJobs", ScopeRealm) + MAILSetJobs = Actions.addAction(MailingService, ManagementAPI, "MAIL_SetJobs", ScopeRealm) + MAILGetConfiguration = Actions.addAction(MailingService, ManagementAPI, "MAIL_GetConfiguration", ScopeRealm) + MAILSetConfiguration = Actions.addAction(MailingService, ManagementAPI, "MAIL_SetConfiguration", ScopeRealm) )