Fix address collision

This commit is contained in:
fkwa 2020-06-20 10:57:21 +02:00 committed by GitHub
parent 40fae8d4da
commit 0f89de3011
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);