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

Method RBACObject

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

Source from the content-addressed store, hash-verified

410}
411
412func (i InboxNotification) RBACObject() rbac.Object {
413 return rbac.ResourceInboxNotification.
414 WithID(i.ID).
415 WithOwner(i.UserID.String())
416}
417
418// RBACObjectNoTemplate is for orphaned template versions.
419func (v TemplateVersion) RBACObjectNoTemplate() rbac.Object {

Callers

nothing calls this directly

Calls 3

WithOwnerMethod · 0.80
WithIDMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected