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