From c1c47b2010a2e3453139501dfa4accf48bb6a92c Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 8 Aug 2011 17:28:22 +0200 Subject: ACL hinzugefügt --- application/controllers/PersonController.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/controllers/PersonController.php') diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php index 40ef456..b38f454 100644 --- a/application/controllers/PersonController.php +++ b/application/controllers/PersonController.php @@ -19,6 +19,7 @@ class PersonController extends Zend_Controller_Action protected $userIDsNamespace = null; protected $config; protected $pbs2host; + protected $acl; public function init() { @@ -27,6 +28,9 @@ class PersonController extends Zend_Controller_Action $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']); + } foreach(Zend_Session::namespaceGet('persons') as $person) { if($person->getID() == $this->userIDsNamespace['personID']) { $this->person = $person; -- cgit v1.2.3-55-g7522