AuthZ: Improve team ID fetching for signedInUser (#78378)

* improve team ID fetching for signedInUser

* remove inner join

* rename func

* nit: remove extra params

* nit: spacing and wrapping
This commit is contained in:
Jo
2023-11-20 16:23:13 +01:00
committed by GitHub
parent 53f53a44e3
commit 259ecb1793
7 changed files with 47 additions and 18 deletions
+5
View File
@@ -79,6 +79,11 @@ type GetTeamByIDQuery struct {
// FilterIgnoreUser is used in a get / search teams query when the caller does not want to filter teams by user ID / membership
const FilterIgnoreUser int64 = 0
type GetTeamIDsByUserQuery struct {
OrgID int64
UserID int64 `json:"userId"`
}
type GetTeamsByUserQuery struct {
OrgID int64
UserID int64 `json:"userId"`