ded90fa28d
* implement perm check with direct db access * add tests * more tests * Update pkg/services/authz/rbac/service.go Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> * Update pkg/services/authz/rbac/service.go Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> * allow fetching permissions for a user who is not a member of the org * linting * fix typo --------- Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
31 lines
418 B
Go
31 lines
418 B
Go
package store
|
|
|
|
type UserIdentifiers struct {
|
|
ID int64
|
|
UID string
|
|
}
|
|
|
|
type BasicRole struct {
|
|
Role string
|
|
IsAdmin bool
|
|
}
|
|
|
|
type PermissionsQuery struct {
|
|
OrgID int64
|
|
UserID int64
|
|
Action string
|
|
TeamIDs []int64
|
|
Role string
|
|
IsServerAdmin bool
|
|
}
|
|
|
|
type BasicRoleQuery struct {
|
|
UserID int64
|
|
OrgID int64
|
|
}
|
|
|
|
type UserIdentifierQuery struct {
|
|
UserID int64
|
|
UserUID string
|
|
}
|