* AccessControl: SQL filters for team search
Set test config
* Remove userIdFilter when FGAC is on
(cherry picked from commit 01b88adb3a)
This commit is contained in:
+2
-2
@@ -198,8 +198,8 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
|
||||
// team without requirement of user to be org admin
|
||||
apiRoute.Group("/teams", func(teamsRoute routing.RouteRegister) {
|
||||
teamsRoute.Get("/:teamId", routing.Wrap(hs.GetTeamByID))
|
||||
teamsRoute.Get("/search", routing.Wrap(hs.SearchTeams))
|
||||
teamsRoute.Get("/:teamId", authorize(reqSignedIn, ac.EvalPermission(ac.ActionTeamsRead, ac.ScopeTeamsID)), routing.Wrap(hs.GetTeamByID))
|
||||
teamsRoute.Get("/search", authorize(reqSignedIn, ac.EvalPermission(ac.ActionTeamsRead)), routing.Wrap(hs.SearchTeams))
|
||||
})
|
||||
|
||||
// org information available to all users.
|
||||
|
||||
Reference in New Issue
Block a user