FIX user without permission can set ticket subject
This commit is contained in:
parent
052511d081
commit
facd6abec3
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ if (empty($reshook)) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($action == 'setsubject') {
|
||||
if ($action == 'setsubject' && $user->rights->ticket->write) {
|
||||
if ($object->fetch(GETPOST('id', 'int'))) {
|
||||
if ($action == 'setsubject') {
|
||||
$object->subject = GETPOST('subject', 'alphanohtml');
|
||||
|
|
|
|||
Loading…
Reference in a new issue