TODO: Should this be in system.go?
(ctx context.Context, arg database.InsertUserLinkParams)
| 5875 | |
| 5876 | // TODO: Should this be in system.go? |
| 5877 | func (q *querier) InsertUserLink(ctx context.Context, arg database.InsertUserLinkParams) (database.UserLink, error) { |
| 5878 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceUserObject(arg.UserID)); err != nil { |
| 5879 | return database.UserLink{}, err |
| 5880 | } |
| 5881 | return q.db.InsertUserLink(ctx, arg) |
| 5882 | } |
| 5883 | |
| 5884 | func (q *querier) InsertUserSkill(ctx context.Context, arg database.InsertUserSkillParams) (database.UserSkill, error) { |
| 5885 | obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String()) |
nothing calls this directly
no test coverage detected