IsPrebuild returns true if the workspace is a prebuild workspace. A workspace is considered a prebuild if its owner is the prebuild system user.
()
| 485 | // IsPrebuild returns true if the workspace is a prebuild workspace. |
| 486 | // A workspace is considered a prebuild if its owner is the prebuild system user. |
| 487 | func (w Workspace) IsPrebuild() bool { |
| 488 | return w.OwnerID == PrebuildsSystemUserID |
| 489 | } |
| 490 | |
| 491 | // AsPrebuild returns the RBAC object corresponding to the workspace type. |
| 492 | // If the workspace is a prebuild, it returns a prebuilt_workspace RBAC object. |
no outgoing calls
no test coverage detected