summaryrefslogtreecommitdiff
path: root/protected/modules/auditTrail/controllers/DefaultController.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/modules/auditTrail/controllers/DefaultController.php')
-rw-r--r--protected/modules/auditTrail/controllers/DefaultController.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/protected/modules/auditTrail/controllers/DefaultController.php b/protected/modules/auditTrail/controllers/DefaultController.php
new file mode 100644
index 0000000..76da57d
--- /dev/null
+++ b/protected/modules/auditTrail/controllers/DefaultController.php
@@ -0,0 +1,36 @@
+<?php
+
+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');
+ }
+} \ No newline at end of file