()
| 928 | } |
| 929 | |
| 930 | func (w WorkspaceIdentity) RBACObject() rbac.Object { |
| 931 | return Workspace{ |
| 932 | ID: w.ID, |
| 933 | OwnerID: w.OwnerID, |
| 934 | OrganizationID: w.OrganizationID, |
| 935 | TemplateID: w.TemplateID, |
| 936 | Name: w.Name, |
| 937 | OwnerUsername: w.OwnerUsername, |
| 938 | TemplateName: w.TemplateName, |
| 939 | AutostartSchedule: w.AutostartSchedule, |
| 940 | }.RBACObject() |
| 941 | } |
| 942 | |
| 943 | // IsPrebuild returns true if the workspace is a prebuild workspace. |
| 944 | // A workspace is considered a prebuild if its owner is the prebuild system user. |