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>
14 lines
227 B
Go
14 lines
227 B
Go
package rbac
|
|
|
|
import "github.com/grafana/authlib/claims"
|
|
|
|
type CheckRequest struct {
|
|
Namespace claims.NamespaceInfo
|
|
UserUID string
|
|
Action string
|
|
Group string
|
|
Resource string
|
|
Verb string
|
|
Name string
|
|
}
|