diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index 76a0397813d..8b2f7f60686 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -259,6 +259,8 @@ class FormTicket { global $conf, $langs, $user, $hookmanager; + $permissiontomanage = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('ticket', 'write')) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('ticket', 'manage_advance'))); + // Load translation files required by the page $langs->loadLangs(array('other', 'mails', 'ticket')); @@ -742,8 +744,14 @@ class FormTicket print '