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

Method UserID

coderd/httpmw/organizationparam.go:222–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220}
221
222func (om OrganizationMembers) UserID() uuid.UUID {
223 if om.User != nil {
224 return om.User.ID
225 }
226
227 if len(om.Memberships) > 0 {
228 return om.Memberships[0].UserID
229 }
230 return uuid.Nil
231}
232
233// ExtractOrganizationMembersParam grabs all user organization memberships.
234// Only requires the "user" URL parameter.

Callers 3

ExtractTaskParamFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected