From 6537535da286e8fdb978ab7581adcfb3777fe66e Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 12 Feb 2009 03:40:26 +0000 Subject: [PATCH] Removed redirection to the tab that this user has access to; it was causing an infinite loop with 2.3 --- code/LeftAndMainSubsites.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/code/LeftAndMainSubsites.php b/code/LeftAndMainSubsites.php index ee08979..d7e4a57 100644 --- a/code/LeftAndMainSubsites.php +++ b/code/LeftAndMainSubsites.php @@ -107,15 +107,6 @@ class LeftAndMainSubsites extends Extension { if($result = Permission::check("CMS_ACCESS_$className")) { return $result; } else { - if($className == 'CMSMain') { - // When access /admin/, we should try a redirect to another part of the admin rather than be locked out - $menu = $this->owner->MainMenu(); - if(($first = $menu->First()) && $first->Link) { - Director::redirect($first->Link); - return; - } - } - $otherSites = Subsite::accessible_sites("CMS_ACCESS_$className"); if($otherSites && $otherSites->TotalItems() > 0) { $otherSites->First()->activate();