Don't allow status creation in demo mode
This commit is contained in:
parent
a38a00cf83
commit
fc1ab9a861
@ -21,7 +21,8 @@ define('WYSIWYG',1);
|
|||||||
|
|
||||||
// Are we performing an action?
|
// Are we performing an action?
|
||||||
if (isset($_REQUEST['a'])) {
|
if (isset($_REQUEST['a'])) {
|
||||||
if ($_REQUEST['a'] == 'create') { createStatus(); }
|
if ( defined('HESK_DEMO') ) { hesk_process_messages($hesklang['cannot_edit_status_demo'], 'manage_statuses.php'); }
|
||||||
|
elseif ($_REQUEST['a'] == 'create') { createStatus(); }
|
||||||
elseif ($_REQUEST['a'] == 'update') { updateStatus(); }
|
elseif ($_REQUEST['a'] == 'update') { updateStatus(); }
|
||||||
elseif ($_REQUEST['a'] == 'delete') { deleteStatus(); }
|
elseif ($_REQUEST['a'] == 'delete') { deleteStatus(); }
|
||||||
elseif ($_REQUEST['a'] == 'sort') { moveStatus(); }
|
elseif ($_REQUEST['a'] == 'sort') { moveStatus(); }
|
||||||
|
@ -60,6 +60,7 @@ $hesklang['kb_attach_dir'] = 'Knowledgebase attachments folder';
|
|||||||
$hesklang['kb_attach_dir_help'] = 'Name of the folder, where knowledgebase attachments will be stored.<br><br>The folder needs to exist within the main HESK folder and be writable by PHP. On most systems names are CaSe SeNSiTiVe.
|
$hesklang['kb_attach_dir_help'] = 'Name of the folder, where knowledgebase attachments will be stored.<br><br>The folder needs to exist within the main HESK folder and be writable by PHP. On most systems names are CaSe SeNSiTiVe.
|
||||||
<br><br>Allowed chars (other will be removed): a-z A-Z 0-9 _ -';
|
<br><br>Allowed chars (other will be removed): a-z A-Z 0-9 _ -';
|
||||||
$hesklang['ticket_attach_dir'] = 'Ticket attachments folder';
|
$hesklang['ticket_attach_dir'] = 'Ticket attachments folder';
|
||||||
|
$hesklang['cannot_edit_status_demo'] = 'You cannot edit statuses while in demo mode!';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
||||||
$hesklang['sm_icon'] = 'Icon';
|
$hesklang['sm_icon'] = 'Icon';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user