MCPcopy Create free account
hub / github.com/coder/coder / DeleteUserSkillByUserIDAndName

Method DeleteUserSkillByUserIDAndName

coderd/database/dbauthz/dbauthz.go:2353–2359  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteUserSkillByUserIDAndNameParams)

Source from the content-addressed store, hash-verified

2351}
2352
2353func (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
2361func (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 {

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected