mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Extra check on activity for #3974
This commit is contained in:
parent
fd629d6574
commit
58bb5eaeae
@ -200,7 +200,7 @@ class AccountUpdateService
|
||||
*/
|
||||
private function updatePreferences(Account $account, array $data): void
|
||||
{
|
||||
if (array_key_exists('active', $data) && false === $data['active']) {
|
||||
if (array_key_exists('active', $data) && (false === $data['active'] || 0 === $data['active'])) {
|
||||
$preference = app('preferences')->getForUser($account->user, 'frontpageAccounts');
|
||||
if (null !== $preference) {
|
||||
$removeAccountId = (int)$account->id;
|
||||
|
Loading…
Reference in New Issue
Block a user