AccessControl: Implement SQL filters for team members filtering (#44898) (#45219)

* AccessControl: Filter team members

* Modify GetTeamMembersByUser comment

* Fix postgres failing test due to quoting

* Rename GetTeamMembersByUser to GetUserTeamMemberships

* Update TeamStore interface

(cherry picked from commit 78fc0258b1)
This commit is contained in:
Gabriel MABILLE
2022-02-10 15:49:02 +01:00
committed by GitHub
parent 82fc75cacc
commit e6d0f5367f
9 changed files with 251 additions and 34 deletions
+2
View File
@@ -13,6 +13,8 @@ var sqlIDAcceptList = map[string]struct{}{
"org_user.user_id": {},
"role.id": {},
"team.id": {},
"\"user\".\"id\"": {}, // For Postgres
"`user`.`id`": {}, // For MySQL and SQLite
}
var (