MCPcopy Index your code
hub / github.com/coder/coder / RBACObject

Method RBACObject

coderd/database/modelmethods.go:930–941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

928}
929
930func (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.

Calls 1

RBACObjectMethod · 0.65