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

Method ListUserSkillMetadataByUserID

coderd/database/dbauthz/dbauthz.go:6259–6265  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

6257}
6258
6259func (q *querier) ListUserSkillMetadataByUserID(ctx context.Context, userID uuid.UUID) ([]database.ListUserSkillMetadataByUserIDRow, error) {
6260 obj := rbac.ResourceUserSkill.WithOwner(userID.String())
6261 if err := q.authorizeContext(ctx, policy.ActionRead, obj); err != nil {
6262 return nil, err
6263 }
6264 return q.db.ListUserSkillMetadataByUserID(ctx, userID)
6265}
6266
6267func (q *querier) ListWorkspaceAgentPortShares(ctx context.Context, workspaceID uuid.UUID) ([]database.WorkspaceAgentPortShare, error) {
6268 workspace, err := q.db.GetWorkspaceByID(ctx, workspaceID)

Callers

nothing calls this directly

Calls 4

authorizeContextMethod · 0.95
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected