From ff947a3cc7fdd62393ecf7042e8208e5cb856571 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 7 Jun 2011 23:52:52 +0000 Subject: administrators can now hide/show device pages --- h-source/Application/Controllers/GenericController.php | 4 ++-- h-source/Application/Controllers/HistoryController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Controllers') 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', ), ); -- cgit v1.2.3