(ctx context.Context, arg database.DeleteUserSecretByUserIDAndNameParams)
| 2343 | } |
| 2344 | |
| 2345 | func (q *querier) DeleteUserSecretByUserIDAndName(ctx context.Context, arg database.DeleteUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 2346 | obj := rbac.ResourceUserSecret.WithOwner(arg.UserID.String()) |
| 2347 | if err := q.authorizeContext(ctx, policy.ActionDelete, obj); err != nil { |
| 2348 | return database.UserSecret{}, err |
| 2349 | } |
| 2350 | return q.db.DeleteUserSecretByUserIDAndName(ctx, arg) |
| 2351 | } |
| 2352 | |
| 2353 | func (q *querier) DeleteUserSkillByUserIDAndName(ctx context.Context, arg database.DeleteUserSkillByUserIDAndNameParams) (database.UserSkill, error) { |
| 2354 | obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String()) |
nothing calls this directly
no test coverage detected