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

Method DeleteOldNotificationMessages

coderd/database/dbauthz/dbauthz.go:2221–2226  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2219}
2220
2221func (q *querier) DeleteOldNotificationMessages(ctx context.Context) error {
2222 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceNotificationMessage); err != nil {
2223 return err
2224 }
2225 return q.db.DeleteOldNotificationMessages(ctx)
2226}
2227
2228func (q *querier) DeleteOldProvisionerDaemons(ctx context.Context) error {
2229 if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceSystem); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected