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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user