From 1dedebd4e668eec6502c72c8478736ec5fb6e09f Mon Sep 17 00:00:00 2001 From: fkwa Date: Sat, 20 Jun 2020 10:52:41 +0200 Subject: [PATCH] Backport address colission fix --- 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);