From: Michael M Slusarz Date: Thu, 30 Jul 2009 03:32:35 +0000 (-0600) Subject: Only run logintasks if we have checked permissions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ca4752da1cdc88830c451711c074ffb43ad24841;p=horde.git Only run logintasks if we have checked permissions. --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 00c3fbe50..060bd1a27 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -776,7 +776,6 @@ class Horde_Registry * ONLY be disabled by system scripts (cron jobs, etc.) * and scripts that handle login. * DEFAULT: true - *
      * 'logintasks' - (boolean) Perform login tasks? Only performed if
      *                'check_perms' is also true. System tasks are always
      *                peformed if the user is authorized.
@@ -866,9 +865,9 @@ class Horde_Registry
         } catch (Horde_Exception_HookNotSet $e) {}
 
         /* Do login tasks. */
-        if (Horde_Auth::getAuth()) {
+        if ($checkPerms) {
             $tasks = Horde_LoginTasks::singleton($app, Horde::selfUrl(true, true, true));
-            $tasks->runTasks(array('runtasks' => $checkPerms && !empty($options['logintasks'])));
+            $tasks->runTasks(array('runtasks' => !empty($options['logintasks'])));
         }
 
         return true;