()
| 361 | } |
| 362 | |
| 363 | func (k APIKey) RBACObject() rbac.Object { |
| 364 | return rbac.ResourceApiKey.WithIDString(k.ID). |
| 365 | WithOwner(k.UserID.String()) |
| 366 | } |
| 367 | |
| 368 | func (t Template) RBACObject() rbac.Object { |
| 369 | return rbac.ResourceTemplate.WithID(t.ID). |
nothing calls this directly
no test coverage detected