(ctx context.Context, arg database.UpdateUserLoginTypeParams)
| 7511 | } |
| 7512 | |
| 7513 | func (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 | |
| 7520 | func (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 { |
nothing calls this directly
no test coverage detected