DEV: Partial revert

This create/promote staged path is special
This commit is contained in:
Martin Brennan 2025-01-10 13:40:06 +10:00
parent 0cebcccd37
commit c995a21e69
No known key found for this signature in database
GPG Key ID: BD981EFEEC8F5675
1 changed files with 2 additions and 2 deletions

View File

@ -680,8 +680,8 @@ class UsersController < ApplicationController
return fail_with("login.wrong_invite_code")
end
availability = UsernameCheckerService.new.check_username_availability(params[:username], nil)
if clashing_with_existing_route?(params[:username]) || !availability[:available]
if clashing_with_existing_route?(params[:username]) ||
User.reserved_username?(params[:username])
return fail_with("login.reserved_username")
end