MCPcopy Index your code
hub / github.com/coder/coder / UpdateUserSkillByUserIDAndName

Method UpdateUserSkillByUserIDAndName

coderd/database/dbauthz/dbauthz.go:7591–7597  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateUserSkillByUserIDAndNameParams)

Source from the content-addressed store, hash-verified

7589}
7590
7591func (q *querier) UpdateUserSkillByUserIDAndName(ctx context.Context, arg database.UpdateUserSkillByUserIDAndNameParams) (database.UserSkill, error) {
7592 obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String())
7593 if err := q.authorizeContext(ctx, policy.ActionUpdate, obj); err != nil {
7594 return database.UserSkill{}, err
7595 }
7596 return q.db.UpdateUserSkillByUserIDAndName(ctx, arg)
7597}
7598
7599func (q *querier) UpdateUserStatus(ctx context.Context, arg database.UpdateUserStatusParams) (database.User, error) {
7600 fetch := func(ctx context.Context, arg database.UpdateUserStatusParams) (database.User, error) {

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected