mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Return error message when dealing with clients who have been deleted
This commit is contained in:
parent
978605495b
commit
8faa687ae4
@ -46,10 +46,11 @@ class CheckClientExistence
|
||||
})
|
||||
->get();
|
||||
|
||||
/* This catches deleted clients who don't have access to the app. We automatically log them out here*/
|
||||
if (count($multiple_contacts) == 0) {
|
||||
Auth::logout();
|
||||
|
||||
return redirect()->route('client.login');
|
||||
return redirect()->route('client.login')->with('message', 'Login disabled');
|
||||
}
|
||||
|
||||
if (count($multiple_contacts) == 1 && !Auth::guard('contact')->check()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user