(ctx context.Context, arg database.DeleteUserSkillByUserIDAndNameParams)
| 2351 | } |
| 2352 | |
| 2353 | func (q *querier) DeleteUserSkillByUserIDAndName(ctx context.Context, arg database.DeleteUserSkillByUserIDAndNameParams) (database.UserSkill, error) { |
| 2354 | obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String()) |
| 2355 | if err := q.authorizeContext(ctx, policy.ActionDelete, obj); err != nil { |
| 2356 | return database.UserSkill{}, err |
| 2357 | } |
| 2358 | return q.db.DeleteUserSkillByUserIDAndName(ctx, arg) |
| 2359 | } |
| 2360 | |
| 2361 | func (q *querier) DeleteWebpushSubscriptionByUserIDAndEndpoint(ctx context.Context, arg database.DeleteWebpushSubscriptionByUserIDAndEndpointParams) error { |
| 2362 | if err := q.authorizeContext(ctx, policy.ActionDelete, rbac.ResourceWebpushSubscription.WithOwner(arg.UserID.String())); err != nil { |
nothing calls this directly
no test coverage detected