MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / RBACEnabled

Method RBACEnabled

app/controlplane/pkg/authz/authz.go:33–35  ·  view source on GitHub ↗

RBACEnabled returns whether an org-scoped role has RBAC enabled and needs resource-scoped enforcement.

()

Source from the content-addressed store, hash-verified

31
32// RBACEnabled returns whether an org-scoped role has RBAC enabled and needs resource-scoped enforcement.
33func (r Role) RBACEnabled() bool {
34 return r == RoleOrgMember || r == RoleOrgContributor
35}
36
37func (r Role) IsAdmin() bool {
38 return r == RoleAdmin || r == RoleOwner

Callers 3

rbacEnabledFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected