(ctx context.Context, arg database.GetUserSkillByUserIDAndNameParams)
| 4778 | } |
| 4779 | |
| 4780 | func (q *querier) GetUserSkillByUserIDAndName(ctx context.Context, arg database.GetUserSkillByUserIDAndNameParams) (database.UserSkill, error) { |
| 4781 | obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String()) |
| 4782 | if err := q.authorizeContext(ctx, policy.ActionRead, obj); err != nil { |
| 4783 | return database.UserSkill{}, err |
| 4784 | } |
| 4785 | return q.db.GetUserSkillByUserIDAndName(ctx, arg) |
| 4786 | } |
| 4787 | |
| 4788 | func (q *querier) GetUserStatusCounts(ctx context.Context, arg database.GetUserStatusCountsParams) ([]database.GetUserStatusCountsRow, error) { |
| 4789 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceUser); err != nil { |
nothing calls this directly
no test coverage detected