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

Method InsertUserSkill

coderd/database/dbauthz/dbauthz.go:5884–5890  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertUserSkillParams)

Source from the content-addressed store, hash-verified

5882}
5883
5884func (q *querier) InsertUserSkill(ctx context.Context, arg database.InsertUserSkillParams) (database.UserSkill, error) {
5885 obj := rbac.ResourceUserSkill.WithOwner(arg.UserID.String())
5886 if err := q.authorizeContext(ctx, policy.ActionCreate, obj); err != nil {
5887 return database.UserSkill{}, err
5888 }
5889 return q.db.InsertUserSkill(ctx, arg)
5890}
5891
5892func (q *querier) InsertVolumeResourceMonitor(ctx context.Context, arg database.InsertVolumeResourceMonitorParams) (database.WorkspaceAgentVolumeResourceMonitor, error) {
5893 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceWorkspaceAgentResourceMonitor); err != nil {

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
InsertUserSkillMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected