summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-07 15:28:39 +0200
committerBjörn Geiger2011-09-07 15:28:39 +0200
commit7136b5723a86d8890936e67e226bc5d1046dafaf (patch)
treec7b69759b76c41deaf5f902ae4507be2ee3fd2a7 /application
parentRechte auch in Layout (diff)
downloadpoolctrl-7136b5723a86d8890936e67e226bc5d1046dafaf.tar.gz
poolctrl-7136b5723a86d8890936e67e226bc5d1046dafaf.tar.xz
poolctrl-7136b5723a86d8890936e67e226bc5d1046dafaf.zip
weitere Korrektur
Diffstat (limited to 'application')
-rw-r--r--application/layouts/default.phtml9
1 files changed, 6 insertions, 3 deletions
diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml
index 1111424..138ca5b 100644
--- a/application/layouts/default.phtml
+++ b/application/layouts/default.phtml
@@ -36,10 +36,13 @@ echo $this->headScript()."\n";
<div id="sidepannel-top" class='portletNavigationTree'>
<ul class='navTreeLevel0'>
<li class='navTreeItem'><a href='/'>Home</a></li>
- <?php if(Zend_Auth::getInstance()->hasIdentity()) { ?>
+ <?php if(Zend_Auth::getInstance()->hasIdentity()) {
+ $userIDsNamespace = Zend_Session::namespaceGet('userIDs');
+ ?>
<li class='navTreeItem'><a href='/person/'>Own Details</a></li>
- <?php if(count(Zend_Session::namespaceGet('userIDs')) > 1) {
- if($this->acl->checkRight('eo')) { ?>
+ <?php if(count($userIDsNamespace) > 1) {
+ $acl = new Poolctrl_Acl($pbs2host, $config['pbs2']['checkright'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);;
+ if($acl->checkRight('eo')) { ?>
<li class='navTreeItem'><a href='/event'>Event</a></li>
<?php } ?>
<li class='navTreeItem'><a href='/person/changemembership'>Change