#195 Add permission for manage ticket statuses
This commit is contained in:
parent
6d62492cc7
commit
ddc15f3ad0
@ -98,6 +98,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</li>
|
</li>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
if (hesk_checkPermission('can_man_ticket_statuses',0))
|
||||||
|
{
|
||||||
|
echo '
|
||||||
|
<li role="presentation">
|
||||||
|
<a title="'.$hesklang['statuses'].'" href="manage_statuses.php">'.$hesklang['statuses'].'</a>
|
||||||
|
</li>
|
||||||
|
';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content summaryList tabPadding">
|
<div class="tab-content summaryList tabPadding">
|
||||||
|
@ -101,6 +101,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</li>
|
</li>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
if (hesk_checkPermission('can_man_ticket_statuses',0))
|
||||||
|
{
|
||||||
|
echo '
|
||||||
|
<li role="presentation">
|
||||||
|
<a title="'.$hesklang['statuses'].'" href="manage_statuses.php">'.$hesklang['statuses'].'</a>
|
||||||
|
</li>
|
||||||
|
';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content summaryList tabPadding">
|
<div class="tab-content summaryList tabPadding">
|
||||||
|
@ -91,6 +91,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
<li role="presentation" class="active">
|
<li role="presentation" class="active">
|
||||||
<a href="#"><?php echo $hesklang['email_templates']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" title="<?php echo $hesklang['email_templates']; ?>" data-content="<?php echo $hesklang['email_templates_intro']; ?>"></i></a>
|
<a href="#"><?php echo $hesklang['email_templates']; ?> <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" title="<?php echo $hesklang['email_templates']; ?>" data-content="<?php echo $hesklang['email_templates_intro']; ?>"></i></a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php
|
||||||
|
if (hesk_checkPermission('can_man_ticket_statuses',0))
|
||||||
|
{
|
||||||
|
echo '
|
||||||
|
<li role="presentation">
|
||||||
|
<a title="'.$hesklang['statuses'].'" href="manage_statuses.php">'.$hesklang['statuses'].'</a>
|
||||||
|
</li>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content summaryList tabPadding">
|
<div class="tab-content summaryList tabPadding">
|
||||||
<?php if ($showEditPanel): ?>
|
<?php if ($showEditPanel): ?>
|
||||||
|
@ -13,8 +13,7 @@ hesk_session_start();
|
|||||||
hesk_dbConnect();
|
hesk_dbConnect();
|
||||||
hesk_isLoggedIn();
|
hesk_isLoggedIn();
|
||||||
|
|
||||||
// TODO Change to 'can_manage_ticket_statuses'
|
hesk_checkPermission('can_man_ticket_statuses');
|
||||||
//hesk_checkPermission('can_manage_ticket_statuses');
|
|
||||||
|
|
||||||
define('WYSIWYG',1);
|
define('WYSIWYG',1);
|
||||||
|
|
||||||
|
@ -78,6 +78,7 @@ $hesk_settings['features'] = array(
|
|||||||
'can_unban_ips', /* User can delete IP bans. Also enables "can_ban_ips" */
|
'can_unban_ips', /* User can delete IP bans. Also enables "can_ban_ips" */
|
||||||
'can_service_msg', /* User can manage service messages shown in customer interface */
|
'can_service_msg', /* User can manage service messages shown in customer interface */
|
||||||
'can_man_email_tpl', /* User can manage email templates */
|
'can_man_email_tpl', /* User can manage email templates */
|
||||||
|
'can_man_ticket_statuses', /* User can manage ticket statuses */
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Set default values */
|
/* Set default values */
|
||||||
|
@ -101,6 +101,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</li>
|
</li>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
if (hesk_checkPermission('can_man_ticket_statuses',0))
|
||||||
|
{
|
||||||
|
echo '
|
||||||
|
<li role="presentation">
|
||||||
|
<a title="'.$hesklang['statuses'].'" href="manage_statuses.php">'.$hesklang['statuses'].'</a>
|
||||||
|
</li>
|
||||||
|
';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content summaryList tabPadding">
|
<div class="tab-content summaryList tabPadding">
|
||||||
|
@ -34,6 +34,7 @@ $hesklang['statuses_saved'] = 'Ticket statuses have been updated!';
|
|||||||
$hesklang['email_template_not_saved'] = 'The email template <b>%s</b> was NOT saved due to an error. Enable debug mode to see if an error message appears, and ensure that your file has CHMOD 0666'; // %s: Template file name
|
$hesklang['email_template_not_saved'] = 'The email template <b>%s</b> was NOT saved due to an error. Enable debug mode to see if an error message appears, and ensure that your file has CHMOD 0666'; // %s: Template file name
|
||||||
$hesklang['language_key'] = 'Language Key';
|
$hesklang['language_key'] = 'Language Key';
|
||||||
$hesklang['language_key_description'] = 'This is the language file \'key\' that contains the text you want to display';
|
$hesklang['language_key_description'] = 'This is the language file \'key\' that contains the text you want to display';
|
||||||
|
$hesklang['can_man_ticket_statuses'] = 'Can manage ticket statuses';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
|
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
|
||||||
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)
|
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user