(ctx context.Context, userID uuid.UUID)
| 4668 | } |
| 4669 | |
| 4670 | func (q *querier) GetUserCodeDiffDisplayMode(ctx context.Context, userID uuid.UUID) (string, error) { |
| 4671 | user, err := q.db.GetUserByID(ctx, userID) |
| 4672 | if err != nil { |
| 4673 | return "", err |
| 4674 | } |
| 4675 | if err := q.authorizeContext(ctx, policy.ActionReadPersonal, user); err != nil { |
| 4676 | return "", err |
| 4677 | } |
| 4678 | return q.db.GetUserCodeDiffDisplayMode(ctx, userID) |
| 4679 | } |
| 4680 | |
| 4681 | func (q *querier) GetUserCount(ctx context.Context, includeSystem bool) (int64, error) { |
| 4682 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected