From bdefa5b79182ed78651f1f60362c399076591309 Mon Sep 17 00:00:00 2001 From: Noam Levy Date: Wed, 26 Jun 2024 19:00:53 +0300 Subject: [PATCH] org admin team ro (#30) --- pkg/api/accesscontrol.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/api/accesscontrol.go b/pkg/api/accesscontrol.go index a4528afa62338..cda6f96b40933 100644 --- a/pkg/api/accesscontrol.go +++ b/pkg/api/accesscontrol.go @@ -292,12 +292,12 @@ func (hs *HTTPServer) declareFixedRoles() error { Description: "Create, read, write, or delete a team as well as controlling team memberships.", Group: "Teams", Permissions: []ac.Permission{ - {Action: ac.ActionTeamsCreate}, - {Action: ac.ActionTeamsDelete, Scope: ac.ScopeTeamsAll}, + // {Action: ac.ActionTeamsCreate}, + // {Action: ac.ActionTeamsDelete, Scope: ac.ScopeTeamsAll}, {Action: ac.ActionTeamsPermissionsRead, Scope: ac.ScopeTeamsAll}, - {Action: ac.ActionTeamsPermissionsWrite, Scope: ac.ScopeTeamsAll}, + // {Action: ac.ActionTeamsPermissionsWrite, Scope: ac.ScopeTeamsAll}, {Action: ac.ActionTeamsRead, Scope: ac.ScopeTeamsAll}, - {Action: ac.ActionTeamsWrite, Scope: ac.ScopeTeamsAll}, + // {Action: ac.ActionTeamsWrite, Scope: ac.ScopeTeamsAll}, }, }, Grants: []string{string(org.RoleAdmin)},