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

Method RBACObject

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

Source from the content-addressed store, hash-verified

421}
422
423func (g Group) RBACObject() rbac.Object {
424 return rbac.ResourceGroup.WithID(g.ID).
425 InOrg(g.OrganizationID).
426 // Group members can read the group.
427 WithGroupACL(map[string][]policy.Action{
428 g.ID.String(): {
429 policy.ActionRead,
430 },
431 })
432}
433
434func (g GetGroupsRow) RBACObject() rbac.Object {
435 return g.Group.RBACObject()

Callers

nothing calls this directly

Calls 4

WithGroupACLMethod · 0.80
InOrgMethod · 0.80
WithIDMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected