Backport address colission fix

This commit is contained in:
fkwa 2020-06-20 10:52:41 +02:00 committed by GitHub
parent 31c595384f
commit 1dedebd4e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -583,6 +583,10 @@ class User extends RowModel
return false;
if(\Chandler\MVC\Routing\Router::i()->getMatchingRoute("/$code")[0]->presenter !== "UnknownTextRouteStrategy")
return false;
$pClub = DB::i()->getContext()->table("groups")->where("shortcode", $code)->fetch();
if(!is_null($pClub))
return false;
}
$this->stateChanges("shortcode", $code);