aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-06-07 23:52:52 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-06-07 23:52:52 +0000
commitff947a3cc7fdd62393ecf7042e8208e5cb856571 (patch)
tree1e6e1373b82f541c97442653789197ac2716d80e /h-source/Application/Controllers
parent67e4728487c9c9ef4bab31b4cb5f98baeac502d3 (diff)
administrators can now hide/show device pages
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/GenericController.php4
-rw-r--r--h-source/Application/Controllers/HistoryController.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php
index da2f87a..eececc9 100644
--- a/h-source/Application/Controllers/GenericController.php
+++ b/h-source/Application/Controllers/GenericController.php
@@ -503,12 +503,12 @@ class GenericController extends BaseController
session_start();
if ( isset($_SESSION['notebook_inserted']) and strcmp($this->controller,'notebooks') === 0 )
{
- $viewFilesList = 'suggest_dialog,dialog,page,if_page_deleted';
+ $viewFilesList = 'suggest_dialog,dialog,page,if_page_deleted,moderator_dialog';
unset($_SESSION['notebook_inserted']);
}
else
{
- $viewFilesList = 'dialog,page,if_page_deleted';
+ $viewFilesList = 'dialog,page,if_page_deleted,moderator_dialog';
}
$this->loadViewAll($viewFilesList);
diff --git a/h-source/Application/Controllers/HistoryController.php b/h-source/Application/Controllers/HistoryController.php
index 71055fc..ead0886 100644
--- a/h-source/Application/Controllers/HistoryController.php
+++ b/h-source/Application/Controllers/HistoryController.php
@@ -261,7 +261,7 @@ class HistoryController extends BaseController
'id_name' => 'id_hard',
'field_name' => '-deleted',
'actions' => array('devicehide','deviceshow'),
- 'group' => 'moderator',
+ 'group' => 'admin',
),
);