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

Method InsertInboxNotification

coderd/database/dbauthz/dbauthz.go:5625–5627  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertInboxNotificationParams)

Source from the content-addressed store, hash-verified

5623}
5624
5625func (q *querier) InsertInboxNotification(ctx context.Context, arg database.InsertInboxNotificationParams) (database.InboxNotification, error) {
5626 return insert(q.log, q.auth, rbac.ResourceInboxNotification.WithOwner(arg.UserID.String()), q.db.InsertInboxNotification)(ctx, arg)
5627}
5628
5629func (q *querier) InsertLicense(ctx context.Context, arg database.InsertLicenseParams) (database.License, error) {
5630 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceLicense); err != nil {

Callers

nothing calls this directly

Calls 3

insertFunction · 0.85
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected