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

Function CompositeSitePermissions

coderd/rbac/scopes.go:173–179  ·  view source on GitHub ↗

CompositeSitePermissions returns the site-level Permission list for a coder:* scope.

(name ScopeName)

Source from the content-addressed store, hash-verified

171
172// CompositeSitePermissions returns the site-level Permission list for a coder:* scope.
173func CompositeSitePermissions(name ScopeName) ([]Permission, bool) {
174 perms, ok := compositePerms[name]
175 if !ok {
176 return nil, false
177 }
178 return Permissions(perms), true
179}
180
181// CompositeScopeNames lists all high-level coder:* names in sorted order.
182func CompositeScopeNames() []string {

Callers 2

TestExternalScopeNamesFunction · 0.85
ExpandScopeFunction · 0.85

Calls 1

PermissionsFunction · 0.85

Tested by 1

TestExternalScopeNamesFunction · 0.68