From: Michael M Slusarz Date: Thu, 14 Jan 2010 18:19:14 +0000 (-0700) Subject: About 100% sure we want to check permissions/auth for Blocks X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=44ea3d9ab81bde2dfc2199621d7ed377b8e0c9c2;p=horde.git About 100% sure we want to check permissions/auth for Blocks --- diff --git a/framework/Block/lib/Horde/Block.php b/framework/Block/lib/Horde/Block.php index bad7bf6d0..d960286c8 100644 --- a/framework/Block/lib/Horde/Block.php +++ b/framework/Block/lib/Horde/Block.php @@ -97,7 +97,7 @@ class Horde_Block /* Switch application contexts, if necessary. Return an error * immediately if pushApp() fails. */ try { - $app_pushed = $GLOBALS['registry']->pushApp($this->_app); + $app_pushed = $GLOBALS['registry']->pushApp($this->_app, array('check_perms' => true, 'logintasks' => false)); } catch (Horde_Exception $e) { return $e->getMessage(); } @@ -127,7 +127,7 @@ class Horde_Block /* Switch application contexts, if necessary. Return an error * immediately if pushApp() fails. */ try { - $app_pushed = $GLOBALS['registry']->pushApp($this->_app); + $app_pushed = $GLOBALS['registry']->pushApp($this->_app, array('check_perms' => true, 'logintasks' => false)); } catch (Horde_Exception $e) { return $e->getMessage(); } @@ -167,7 +167,7 @@ class Horde_Block /* Switch application contexts, if necessary. Return an error * immediately if pushApp() fails. */ try { - $app_pushed = $GLOBALS['registry']->pushApp($this->_app); + $app_pushed = $GLOBALS['registry']->pushApp($this->_app, array('check_perms' => true, 'logintasks' => false)); } catch (Horde_Exception $e) { return $e->getMessage(); } @@ -191,7 +191,7 @@ class Horde_Block /* Switch application contexts, if necessary. Return an error * immediately if pushApp() fails. */ try { - $app_pushed = $GLOBALS['registry']->pushApp($this->_app, array('logintasks' => false)); + $app_pushed = $GLOBALS['registry']->pushApp($this->_app, array('check_perms' => true, 'logintasks' => false)); } catch (Horde_Exception $e) { return $e->getMessage(); }