mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for checking valid project
This commit is contained in:
parent
1d8e5a33bf
commit
2285bd8030
@ -54,10 +54,10 @@ class QueryLogging
|
||||
|
||||
// info("Query count = {$count}");
|
||||
|
||||
if($count > 175){
|
||||
// if($count > 175){
|
||||
nlog("Query count = {$count}");
|
||||
nlog($queries);
|
||||
}
|
||||
// nlog($queries);
|
||||
// }
|
||||
|
||||
$ip = '';
|
||||
|
||||
|
@ -44,6 +44,7 @@ class ShowStatementRequest extends FormRequest
|
||||
|
||||
public function client(): Client
|
||||
{
|
||||
return auth('contact')->user()->client;
|
||||
return Client::withTrashed()->without('contacts.company', 'documents', 'gateway_tokens')->where('id', auth('contact')->user()->client_id)->first();
|
||||
// return auth('contact')->user()->client;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user