(ctx context.Context, userID uuid.UUID)
| 4851 | } |
| 4852 | |
| 4853 | func (q *querier) GetWebpushSubscriptionsByUserID(ctx context.Context, userID uuid.UUID) ([]database.WebpushSubscription, error) { |
| 4854 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceWebpushSubscription.WithOwner(userID.String())); err != nil { |
| 4855 | return nil, err |
| 4856 | } |
| 4857 | return q.db.GetWebpushSubscriptionsByUserID(ctx, userID) |
| 4858 | } |
| 4859 | |
| 4860 | func (q *querier) GetWebpushVAPIDKeys(ctx context.Context) (database.GetWebpushVAPIDKeysRow, error) { |
| 4861 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected