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

Method MarkAllInboxNotificationsAsRead

coderd/database/dbauthz/dbauthz.go:6281–6289  ·  view source on GitHub ↗
(ctx context.Context, arg database.MarkAllInboxNotificationsAsReadParams)

Source from the content-addressed store, hash-verified

6279}
6280
6281func (q *querier) MarkAllInboxNotificationsAsRead(ctx context.Context, arg database.MarkAllInboxNotificationsAsReadParams) error {
6282 resource := rbac.ResourceInboxNotification.WithOwner(arg.UserID.String())
6283
6284 if err := q.authorizeContext(ctx, policy.ActionUpdate, resource); err != nil {
6285 return err
6286 }
6287
6288 return q.db.MarkAllInboxNotificationsAsRead(ctx, arg)
6289}
6290
6291func (q *querier) OIDCClaimFieldValues(ctx context.Context, args database.OIDCClaimFieldValuesParams) ([]string, error) {
6292 resource := rbac.ResourceIdpsyncSettings

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected