From ca4752da1cdc88830c451711c074ffb43ad24841 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 29 Jul 2009 21:32:35 -0600 Subject: [PATCH] Only run logintasks if we have checked permissions. --- framework/Core/lib/Horde/Registry.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;
-- 
2.11.0