Skip to content

Commit

Permalink
RHINENG-9505: use the same permission as content-sources
Browse files Browse the repository at this point in the history
/minor
  • Loading branch information
MichaelMraka committed Sep 9, 2024
1 parent 0acc23e commit 8c33cc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manager/middlewares/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}

Expand All @@ -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
}
Expand Down

0 comments on commit 8c33cc4

Please sign in to comment.