(ctx context.Context, id uuid.UUID)
| 3707 | } |
| 3708 | |
| 3709 | func (q *querier) GetNotificationTemplateByID(ctx context.Context, id uuid.UUID) (database.NotificationTemplate, error) { |
| 3710 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceNotificationTemplate); err != nil { |
| 3711 | return database.NotificationTemplate{}, err |
| 3712 | } |
| 3713 | return q.db.GetNotificationTemplateByID(ctx, id) |
| 3714 | } |
| 3715 | |
| 3716 | func (q *querier) GetNotificationTemplatesByKind(ctx context.Context, kind database.NotificationTemplateKind) ([]database.NotificationTemplate, error) { |
| 3717 | // Anyone can read the 'system' and 'custom' notification templates. |
nothing calls this directly
no test coverage detected