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

Function orgSettings

coderd/rbac/rolestore/rolestore.go:338–342  ·  view source on GitHub ↗

orgSettings maps database.Organization fields to the rbac.OrgSettings struct, bridging the database and rbac packages without introducing a circular dependency.

(org database.Organization)

Source from the content-addressed store, hash-verified

336// rbac.OrgSettings struct, bridging the database and rbac packages
337// without introducing a circular dependency.
338func orgSettings(org database.Organization) rbac.OrgSettings {
339 return rbac.OrgSettings{
340 ShareableWorkspaceOwners: rbac.ShareableWorkspaceOwners(org.ShareableWorkspaceOwners),
341 }
342}
343
344// CreateSystemRole inserts a new system role into the database with
345// permissions produced by permsFunc based on the organization's current

Callers 2

ReconcileSystemRoleFunction · 0.85
CreateSystemRoleFunction · 0.85

Calls 1

ShareableWorkspaceOwnersTypeAlias · 0.92

Tested by

no test coverage detected