RBAC: Update permission query to not join on team table (#53677)

* RBAC: Add teamIDs to get permission query

* RBAC: Remove join on team table and use team ids

* RBAC: Pass team ids
This commit is contained in:
Karl Persson
2022-08-15 09:41:20 +02:00
committed by GitHub
parent 97eec9c220
commit 4069fe1c39
4 changed files with 53 additions and 38 deletions

View File

@@ -211,6 +211,7 @@ type GetUserPermissionsQuery struct {
UserID int64 `json:"userId"`
Roles []string
Actions []string
TeamIDs []int64
}
// ScopeParams holds the parameters used to fill in scope templates