From cf18a0653b609366274515622549b22d39c7b41d Mon Sep 17 00:00:00 2001 From: Michelle Bergquist Date: Fri, 5 May 2023 10:31:22 -0600 Subject: [PATCH] add billing RBAC to editor role - for new team billing pages --- lib/services/presets.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/services/presets.go b/lib/services/presets.go index 40f520a6687f7..0bc4fec00b818 100644 --- a/lib/services/presets.go +++ b/lib/services/presets.go @@ -86,6 +86,7 @@ func NewPresetEditorRole() types.Role { types.NewRule(types.KindOktaAssignment, RW()), types.NewRule(types.KindLock, RW()), types.NewRule(types.KindIntegration, append(RW(), types.VerbUse)), + types.NewRule(types.KindBilling, RW()), // Please see defaultAllowRules when adding a new rule. }, }, @@ -211,6 +212,7 @@ func defaultAllowRules() map[string][]types.Rule { types.NewRule(types.KindDevice, append(RW(), types.VerbCreateEnrollToken, types.VerbEnroll)), types.NewRule(types.KindLock, RW()), types.NewRule(types.KindIntegration, append(RW(), types.VerbUse)), + types.NewRule(types.KindBilling, RW()), }, } }