bug-fix-patch-1

# client side close ticket
This commit is contained in:
Manish Verma
2016-11-28 14:55:19 +05:30
parent e9e9b918a3
commit 20b7435b9a

View File

@@ -1237,10 +1237,6 @@ class TicketController extends Controller
public function close($id, Tickets $ticket)
{
$ticket = Tickets::where('id', '=', $id)->first();
$approval = Approval::where('id', '=', 1)->first();
//Admin can close direce
if (Auth::user()->role == 'admin') {
if (Auth::user()->role == 'user') {
$ticket_status = $ticket->where('id', '=', $id)->where('user_id', '=', Auth::user()->id)->first();
} else {
@@ -1292,7 +1288,6 @@ class TicketController extends Controller
return 'your ticket'.$ticket_status->ticket_number.' has been closed';
}
}
/**
* function to Ticket resolved.