summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/EventController.php')
-rwxr-xr-xapplication/controllers/EventController.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index f7754c8..b7fd5ab 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -716,7 +716,9 @@ class EventController extends Zend_Controller_Action
*/
public function getpoollistAction() {
-
+ if(!$this->acl->checkRight('eo')) {
+ $this->_redirect('/');
+ }
$this->_helper->layout->disableLayout();
$poollist = array();
$poolApiResult = PostToHost($this->pbs2host, $this->config['pbs2']['getpools'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', '');
@@ -768,11 +770,11 @@ class EventController extends Zend_Controller_Action
foreach($events['withrepeat'] as $e) {
- $evstartTime = intval(strtotime($e['start'])) + $diff;
- if($e['running'] == 0 && $e['repeat'] == 1 && $evstartTime < time()) {
- $this->view->past = true;
- }
-
+ $evstartTime = intval(strtotime($e['start'])) + $diff;
+ if($e['running'] == 0 && $e['repeat'] == 1 && $evstartTime < time()) {
+ $this->view->past = true;
+ }
+
$enewstart = date('Y-m-d H:i:s', strtotime($e['start']) + $diff);
$summertimeStart = intval(date('I', strtotime($e['start'])));