From 0bc64efa4ab183d9c98334b6c4180307fef0a51b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 16 Mar 2009 03:50:57 +0000 Subject: Thin down the scaffolding code so that all that is there is the test data creation and the packaging code. The rest ofthe functionality is either no longer required, or moved to the developer module (MPTT Tree). Also provide checking for the active user to be an admin. --- core/helpers/core_menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php index c0e94f94..e372cc72 100644 --- a/core/helpers/core_menu.php +++ b/core/helpers/core_menu.php @@ -19,7 +19,7 @@ */ class core_menu_Core { static function site($menu, $theme) { - if (file_exists(APPPATH . "controllers/scaffold.php")) { + if (file_exists(APPPATH . "controllers/scaffold.php") && user::active()->admin) { $menu->append($scaffold_menu = Menu::factory("submenu") ->id("scaffold") ->label("Scaffold")); -- cgit v1.2.3