clients table controller updated
This commit is contained in:
parent
06d0b88a73
commit
14451547e3
@ -13,7 +13,11 @@ class ClientsTableController extends Controller
|
||||
public function index(Request $request)
|
||||
{
|
||||
$user = auth()->user();
|
||||
$agent = Agent::where('user_id', $user->id)->first();
|
||||
if (!$agent = Agent::where('user_id', $user->id)->first())
|
||||
{
|
||||
abort(401);
|
||||
}
|
||||
|
||||
return view(
|
||||
'clients.table',
|
||||
[
|
||||
|
||||
Loading…
Reference in New Issue
Block a user