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

Method UpdateUserLoginType

coderd/database/dbauthz/dbauthz.go:7513–7518  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateUserLoginTypeParams)

Source from the content-addressed store, hash-verified

7511}
7512
7513func (q *querier) UpdateUserLoginType(ctx context.Context, arg database.UpdateUserLoginTypeParams) (database.User, error) {
7514 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
7515 return database.User{}, err
7516 }
7517 return q.db.UpdateUserLoginType(ctx, arg)
7518}
7519
7520func (q *querier) UpdateUserNotificationPreferences(ctx context.Context, arg database.UpdateUserNotificationPreferencesParams) (int64, error) {
7521 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceNotificationPreference.WithOwner(arg.UserID.String())); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
UpdateUserLoginTypeMethod · 0.65

Tested by

no test coverage detected