(ctx context.Context, userID uuid.UUID)
| 4729 | } |
| 4730 | |
| 4731 | func (q *querier) GetUserLinksByUserID(ctx context.Context, userID uuid.UUID) ([]database.UserLink, error) { |
| 4732 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
| 4733 | return nil, err |
| 4734 | } |
| 4735 | return q.db.GetUserLinksByUserID(ctx, userID) |
| 4736 | } |
| 4737 | |
| 4738 | func (q *querier) GetUserNotificationPreferences(ctx context.Context, userID uuid.UUID) ([]database.NotificationPreference, error) { |
| 4739 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceNotificationPreference.WithOwner(userID.String())); err != nil { |
nothing calls this directly
no test coverage detected