summaryrefslogtreecommitdiffstats
path: root/application/controllers/ErrorController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ErrorController.php')
-rw-r--r--application/controllers/ErrorController.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php
index 3866450..49ecdcf 100644
--- a/application/controllers/ErrorController.php
+++ b/application/controllers/ErrorController.php
@@ -4,13 +4,19 @@ class ErrorController extends Zend_Controller_Action
{
protected $config;
protected $pbs2host;
+ protected $userIDsNamespace;
+ protected $acl;
public function errorAction()
{
$bootstrap = $this->getInvokeArg('bootstrap');
$this->config = $bootstrap->getOptions();
$this->pbs2host = $this->config['pbs2']['host'];
-
+ $this->userIDsNamespace = Zend_Session::namespaceGet('userIDs');
+ if(isset($this->userIDsNamespace['apikey'])) {
+ $this->acl = new Poolctrl_Acl($this->pbs2host, $this->config['pbs2']['checkright'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
+ }
+
$errors = $this->_getParam('error_handler');
if (!$errors || !$errors instanceof ArrayObject) {