mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 18:54:37 -04:00
Minor checks for user deleted_at state
This commit is contained in:
parent
f89668c326
commit
3ce0a601ff
@ -126,7 +126,8 @@ class CheckData extends Command
|
|||||||
$this->checkVendorSettings();
|
$this->checkVendorSettings();
|
||||||
$this->checkClientSettings();
|
$this->checkClientSettings();
|
||||||
$this->checkCompanyTokens();
|
$this->checkCompanyTokens();
|
||||||
|
$this->checkUserState();
|
||||||
|
|
||||||
if(Ninja::isHosted()){
|
if(Ninja::isHosted()){
|
||||||
$this->checkAccountStatuses();
|
$this->checkAccountStatuses();
|
||||||
$this->checkNinjaPortalUrls();
|
$this->checkNinjaPortalUrls();
|
||||||
@ -414,6 +415,16 @@ class CheckData extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function checkUserState()
|
||||||
|
{
|
||||||
|
User::withTrashed()
|
||||||
|
->where('deleted_at', '0000-00-00 00:00:00.000000')
|
||||||
|
->cursor()
|
||||||
|
->each(function ($user){
|
||||||
|
$user->restore();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private function checkEntityInvitations()
|
private function checkEntityInvitations()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user