Has returns true if the slice contains the provided scope.
(target APIKeyScope)
| 254 | |
| 255 | // Has returns true if the slice contains the provided scope. |
| 256 | func (s APIKeyScopes) Has(target APIKeyScope) bool { |
| 257 | return slices.Contains(s, target) |
| 258 | } |
| 259 | |
| 260 | // expandRBACScope merges the permissions of all scopes in the list into a |
| 261 | // single RBAC scope. If the list is empty, it defaults to rbac.ScopeAll for |