From 8c33cc43c5a086364aa720b712b53ef173589b29 Mon Sep 17 00:00:00 2001 From: Michael Mraka Date: Mon, 9 Sep 2024 16:06:30 +0200 Subject: [PATCH] RHINENG-9505: use the same permission as content-sources /minor --- manager/middlewares/rbac.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manager/middlewares/rbac.go b/manager/middlewares/rbac.go index e809143b7..697b0bab5 100644 --- a/manager/middlewares/rbac.go +++ b/manager/middlewares/rbac.go @@ -32,8 +32,8 @@ var granularPerms = map[string]string{ "BaselineUpdateHandler": "patch:template:write", "BaselineDeleteHandler": "patch:template:write", "BaselineSystemsRemoveHandler": "patch:template:write", - "TemplateSystemsUpdateHandler": "patch:template:write", - "TemplateSystemsDeleteHandler": "patch:template:write", + "TemplateSystemsUpdateHandler": "content-sources:templates:write", + "TemplateSystemsDeleteHandler": "content-sources:templates:write", "SystemDeleteHandler": "patch:system:write", } @@ -46,7 +46,7 @@ func makeClient(identity string) *api.Client { } if rbacURL == "" { rbacURL = utils.FailIfEmpty(utils.CoreCfg.RbacAddress, "RBAC_ADDRESS") + base.RBACApiPrefix + - "/access/?application=patch,inventory" + "/access/?application=patch,inventory,content-sources" } return &client }