Browse Source

#195 Add permission for manage ticket statuses

merge-requests/2/head
Mike Koch 7 years ago
parent
commit
ddc15f3ad0
  1. 8
      admin/banned_emails.php
  2. 8
      admin/banned_ips.php
  3. 10
      admin/manage_email_templates.php
  4. 3
      admin/manage_statuses.php
  5. 1
      admin/manage_users.php
  6. 8
      admin/service_messages.php
  7. 1
      language/en/text.php

8
admin/banned_emails.php

@ -98,6 +98,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</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>
<div class="tab-content summaryList tabPadding">

8
admin/banned_ips.php

@ -101,6 +101,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</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>
<div class="tab-content summaryList tabPadding">

10
admin/manage_email_templates.php

@ -91,6 +91,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<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>
</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>
<div class="tab-content summaryList tabPadding">
<?php if ($showEditPanel): ?>

3
admin/manage_statuses.php

@ -13,8 +13,7 @@ hesk_session_start();
hesk_dbConnect();
hesk_isLoggedIn();
// TODO Change to 'can_manage_ticket_statuses'
//hesk_checkPermission('can_manage_ticket_statuses');
hesk_checkPermission('can_man_ticket_statuses');
define('WYSIWYG',1);

1
admin/manage_users.php

@ -78,6 +78,7 @@ $hesk_settings['features'] = array(
'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_man_email_tpl', /* User can manage email templates */
'can_man_ticket_statuses', /* User can manage ticket statuses */
);
/* Set default values */

8
admin/service_messages.php

@ -101,6 +101,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
</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>
<div class="tab-content summaryList tabPadding">

1
language/en/text.php

@ -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['language_key'] = 'Language Key';
$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
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)

Loading…
Cancel
Save