From 0f89de3011cfd336ee717efe357f507cf946378e Mon Sep 17 00:00:00 2001 From: fkwa Date: Sat, 20 Jun 2020 10:57:21 +0200 Subject: [PATCH] Fix address collision --- Web/Models/Entities/User.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index c5c1f488..179b504d 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -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);