updates
This commit is contained in:
@@ -1990,12 +1990,12 @@ class TicketController extends Controller
|
|||||||
$dept = Department::where('name', '=', $id)->first();
|
$dept = Department::where('name', '=', $id)->first();
|
||||||
if (Auth::user()->role == 'agent') {
|
if (Auth::user()->role == 'agent') {
|
||||||
if (Auth::user()->primary_dpt == $dept->id) {
|
if (Auth::user()->primary_dpt == $dept->id) {
|
||||||
return view('themes.default1.agent.helpdesk.dept-ticket.open', compact('id'));
|
return view('themes.default1.agent.helpdesk.dept-ticket.tickets', compact('id'));
|
||||||
} else {
|
} else {
|
||||||
return redirect()->back()->with('fails', 'Unauthorised!');
|
return redirect()->back()->with('fails', 'Unauthorised!');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return view('themes.default1.agent.helpdesk.dept-ticket.open', compact('id'));
|
return view('themes.default1.agent.helpdesk.dept-ticket.tickets', compact('id'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user