show only if debug mode is on

This commit is contained in:
Uwe Steinmann 2020-02-27 17:58:42 +01:00
parent ae2b7d4631
commit 58bf7ab1b7

View File

@ -28,6 +28,9 @@ require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
if (!$settings->_enableDebugMode) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}