summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatsController.php
diff options
context:
space:
mode:
authorSimon2011-04-13 16:35:49 +0200
committerSimon2011-04-13 16:35:49 +0200
commitb306697b1e9a549a7a06e0b14dc3f62e14913dd4 (patch)
tree9d883726abf707e73651ce1a2692ac8bbd48df55 /application/controllers/StatsController.php
parentBei Details anderer Personen gleiches Layout wie bei OwnDetails (diff)
downloadpbs2-b306697b1e9a549a7a06e0b14dc3f62e14913dd4.tar.gz
pbs2-b306697b1e9a549a7a06e0b14dc3f62e14913dd4.tar.xz
pbs2-b306697b1e9a549a7a06e0b14dc3f62e14913dd4.zip
Rechte in Gruppen nächster Teil
Diffstat (limited to 'application/controllers/StatsController.php')
-rw-r--r--application/controllers/StatsController.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/controllers/StatsController.php b/application/controllers/StatsController.php
index 8fc718e..74eb2db 100644
--- a/application/controllers/StatsController.php
+++ b/application/controllers/StatsController.php
@@ -22,8 +22,14 @@ class StatsController extends Zend_Controller_Action
if(is_numeric($level) && $level != ''){
$n->setHiglightLevel($level);
}
+ $groupID = $userIDsNamespace['groupID'];
- echo $n->graph($userIDsNamespace['groupID']);
+ $group = $this->_request->getParam('group');
+ if((Pbs_Acl::checkRight('gsdo') || Pbs_Acl::checkRight('gsdog')) && is_numeric($group)){
+ $groupID = $group;
+ }
+
+ echo $n->graph($groupID);
}
}
}