IsPrebuild returns true if the workspace is a prebuild workspace. A workspace is considered a prebuild if its owner is the prebuild system user.
()
| 529 | // IsPrebuild returns true if the workspace is a prebuild workspace. |
| 530 | // A workspace is considered a prebuild if its owner is the prebuild system user. |
| 531 | func (w WorkspaceTable) IsPrebuild() bool { |
| 532 | return w.OwnerID == PrebuildsSystemUserID |
| 533 | } |
| 534 | |
| 535 | // AsPrebuild returns the RBAC object corresponding to the workspace type. |
| 536 | // If the workspace is a prebuild, it returns a prebuilt_workspace RBAC object. |