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

Method GetUserLinksByUserID

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

Source from the content-addressed store, hash-verified

4729}
4730
4731func (q *querier) GetUserLinksByUserID(ctx context.Context, userID uuid.UUID) ([]database.UserLink, error) {
4732 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil {
4733 return nil, err
4734 }
4735 return q.db.GetUserLinksByUserID(ctx, userID)
4736}
4737
4738func (q *querier) GetUserNotificationPreferences(ctx context.Context, userID uuid.UUID) ([]database.NotificationPreference, error) {
4739 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceNotificationPreference.WithOwner(userID.String())); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetUserLinksByUserIDMethod · 0.65

Tested by

no test coverage detected