summaryrefslogtreecommitdiff
path: root/protected/modules/auditTrail/controllers/DefaultController.php
diff options
context:
space:
mode:
authorTristan Zur <tzur@ccwn.org>2012-04-28 17:06:39 +0200
committerTristan Zur <tzur@ccwn.org>2012-04-28 17:06:39 +0200
commit139dbc9cc21fb1d419c6ecc80380f723e613efbc (patch)
tree3bfa5c3ee5c84e2ff9ec7ccef2b27f1f378a6a19 /protected/modules/auditTrail/controllers/DefaultController.php
parent2d4bddcbf7b816f86db6f308a4d11bc9787c1f99 (diff)
- AuditTrail Berechtigungen gesetzt (Nur Admin)
- Fehler in Extension "CJuiDateTimePicker" beseitigt - DateCompareValidator hinzugefügt - DateRangeValidator hinzugefügt - Datenbanktabellennamen geändert - Views für die Veranstaltungen bearbeitet
Diffstat (limited to 'protected/modules/auditTrail/controllers/DefaultController.php')
-rw-r--r--protected/modules/auditTrail/controllers/DefaultController.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/protected/modules/auditTrail/controllers/DefaultController.php b/protected/modules/auditTrail/controllers/DefaultController.php
index 957551e..76da57d 100644
--- a/protected/modules/auditTrail/controllers/DefaultController.php
+++ b/protected/modules/auditTrail/controllers/DefaultController.php
@@ -2,6 +2,33 @@
class DefaultController extends Controller
{
+
+ /**
+ * @return array action filters
+ */
+ public function filters()
+ {
+ return array(
+ 'accessControl', // perform access control for CRUD operations
+ );
+ }
+
+ /**
+ * Specifies the access control rules.
+ * This method is used by the 'accessControl' filter.
+ * @return array access control rules
+ */
+ public function accessRules()
+ {
+ return array(
+ array('allow', // allow admin user to perform actions
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
public function actionIndex()
{
$this->render('index');