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/EventController.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/controllers/EventController.php') diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php index b30f671..1fd1d9c 100644 --- a/application/controllers/EventController.php +++ b/application/controllers/EventController.php @@ -17,6 +17,7 @@ class EventController extends Zend_Controller_Action protected $config; protected $pbs2host; protected $userIDsNamespace; + protected $acl; public function init() { @@ -25,6 +26,9 @@ class EventController 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']); + } if($this->userIDsNamespace['membershipID'] !='') { $this->eventMapper = new Application_Model_EventMapper(); $this->eventcategoryMapper = new Application_Model_EventcategoryMapper(); -- cgit v1.2.3-55-g7522