From 5c4cece430e9a60adf99ab3197831716fa0a142e Mon Sep 17 00:00:00 2001 From: Ieva Date: Fri, 20 Oct 2023 13:51:03 +0100 Subject: [PATCH] Fix: align access to the team page with access to the team tab (#76868) align access to the team page with access to the team tab in the navigation bar --- pkg/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 437499a6f54..da3814fc882 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -91,7 +91,7 @@ func (hs *HTTPServer) registerRoutes() { r.Get("/org/users", authorize(ac.EvalPermission(ac.ActionOrgUsersRead)), hs.Index) r.Get("/org/users/new", reqOrgAdmin, hs.Index) r.Get("/org/users/invite", authorize(ac.EvalPermission(ac.ActionOrgUsersAdd)), hs.Index) - r.Get("/org/teams", authorize(ac.EvalPermission(ac.ActionTeamsRead)), hs.Index) + r.Get("/org/teams", authorize(ac.TeamsAccessEvaluator), hs.Index) r.Get("/org/teams/edit/*", authorize(ac.TeamsEditAccessEvaluator), hs.Index) r.Get("/org/teams/new", authorize(ac.EvalPermission(ac.ActionTeamsCreate)), hs.Index) r.Get("/org/serviceaccounts", authorize(ac.EvalPermission(serviceaccounts.ActionRead)), hs.Index)