mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
Update CommentController.php
This commit is contained in:
@@ -552,7 +552,16 @@ class CommentController extends Controller
|
||||
return \redirect()->route('request', ['id' => $tr->id])
|
||||
->withErrors($v->errors());
|
||||
}
|
||||
|
||||
if ($user->id != $ticket->user_id) {
|
||||
$ticket->user_read = 0;
|
||||
}
|
||||
if ($user->id == $ticket->user_id) {
|
||||
$ticket->staff_read = 0;
|
||||
}
|
||||
$comment->save();
|
||||
$ticket->save();
|
||||
|
||||
|
||||
return \redirect()->route('tickets.show', ['id' => $ticket->id])
|
||||
->withSuccess('Your Comment Has Been Added!');
|
||||
|
||||
Reference in New Issue
Block a user