FIX user without permission can set ticket subject
This commit is contained in:
parent
052511d081
commit
facd6abec3
@ -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 New Issue
Block a user