()
| 373 | } |
| 374 | |
| 375 | func (t GetFileTemplatesRow) RBACObject() rbac.Object { |
| 376 | return rbac.ResourceTemplate.WithID(t.TemplateID). |
| 377 | InOrg(t.TemplateOrganizationID). |
| 378 | WithACLUserList(t.UserACL). |
| 379 | WithGroupACL(t.GroupACL) |
| 380 | } |
| 381 | |
| 382 | // RBACObject for a workspace build's provisioner state requires Update access of the template. |
| 383 | func (t GetWorkspaceBuildProvisionerStateByIDRow) RBACObject() rbac.Object { |
nothing calls this directly
no test coverage detected