summaryrefslogtreecommitdiffstats
path: root/application/controllers/StatsController.php
diff options
context:
space:
mode:
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);
}
}
}