summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-08 17:28:22 +0200
committerBjörn Geiger2011-08-08 17:28:22 +0200
commitc1c47b2010a2e3453139501dfa4accf48bb6a92c (patch)
tree16657ccd1e93dbae8e9c77c9399c4613cd99e1af /application/controllers/EventController.php
parentkleine änderungen (diff)
downloadpoolctrl-c1c47b2010a2e3453139501dfa4accf48bb6a92c.tar.gz
poolctrl-c1c47b2010a2e3453139501dfa4accf48bb6a92c.tar.xz
poolctrl-c1c47b2010a2e3453139501dfa4accf48bb6a92c.zip
ACL hinzugefügt
Diffstat (limited to 'application/controllers/EventController.php')
-rw-r--r--application/controllers/EventController.php4
1 files changed, 4 insertions, 0 deletions
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();