Skip to content
Snippets Groups Projects
Commit 7f7d1d27 authored by Till Brehm's avatar Till Brehm
Browse files

Disable FAQ edit functionality in demo mode.

parent 77356ced
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@ require_once '../../lib/app.inc.php';
// Check module permissions
$app->auth->check_module_permissions('admin');
// Do not allow FAQ editor in DEMO mode
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
// Load the form
$app->uses('tform_actions');
$app->tform_actions->onDelete();
......
......@@ -10,6 +10,9 @@ require_once '../../lib/app.inc.php';
// Check the module permissions and redirect if not allowed.
$app->auth->check_module_permissions('admin');
// Do not allow FAQ editor in DEMO mode
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
// Load the templating and form classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
......
......@@ -11,6 +11,9 @@ require_once '../../lib/app.inc.php';
// Check module permissions
$app->auth->check_module_permissions('admin');
// Do not allow FAQ editor in DEMO mode
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
// Load the form
$app->uses('tform_actions');
$app->tform_actions->onDelete();
......
......@@ -10,6 +10,9 @@ require_once '../../lib/app.inc.php';
// Check the module permissions and redirect if not allowed.
$app->auth->check_module_permissions('admin');
// Do not allow FAQ editor in DEMO mode
if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.');
// Load the templating and form classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
......
......@@ -87,6 +87,10 @@ class monitor_tools {
$mainver = $ver;
}
switch ($mainver){
case "20.04":
$relname = "(Focal Fossa)";
$distconfid = 'ubuntu2004';
break;
case "18.04":
$relname = "(Bionic Beaver)";
$distconfid = 'ubuntu1804';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment