summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-14 16:07:50 +0200
committerBjörn Geiger2011-09-14 16:07:50 +0200
commit306747a3da0893700abec9b8dc7bffe8d96987cf (patch)
tree227c92a7003931a83208481c595cc68f497e1efc /application
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-306747a3da0893700abec9b8dc7bffe8d96987cf.tar.gz
poolctrl-306747a3da0893700abec9b8dc7bffe8d96987cf.tar.xz
poolctrl-306747a3da0893700abec9b8dc7bffe8d96987cf.zip
checkright für javascript
Diffstat (limited to 'application')
-rwxr-xr-xapplication/controllers/EventController.php7
-rw-r--r--application/views/scripts/event/checkright.phtml7
2 files changed, 14 insertions, 0 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 2dafd68..1d97f86 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -239,6 +239,7 @@ class EventController extends Zend_Controller_Action
} else {
$event->setRunning(false);
}
+ $event->setCreated(time());
try {
$eventID = $this->eventMapper->save($event);
} catch(Zend_Exception $e)
@@ -597,6 +598,12 @@ class EventController extends Zend_Controller_Action
echo json_encode($events);
}
+ public function checkrightAction() {
+ $this->_helper->layout->disableLayout();
+ $rightShortcut = $this->_request->getParam("rightShortcut");
+ $this->view->right = $this->acl->checkRight($rightShortcut);
+ }
+
/*
* ----------------------
* END CALENDAR FUNCTIONS
diff --git a/application/views/scripts/event/checkright.phtml b/application/views/scripts/event/checkright.phtml
new file mode 100644
index 0000000..b8c8a62
--- /dev/null
+++ b/application/views/scripts/event/checkright.phtml
@@ -0,0 +1,7 @@
+<?php
+if($this->right) {
+ echo "true";
+} else {
+ echo "false";
+}
+?> \ No newline at end of file