fix: phpstan ci

Not sure why it didn't warn of this sooner.
This commit is contained in:
Roardom
2025-07-19 12:15:20 +00:00
parent 48adfce1af
commit c25dbe6329

View File

@@ -56,7 +56,7 @@ class FortifyServiceProvider extends ServiceProvider
// Check if user is disabled
if ($user->group->slug === 'disabled') {
$user->group_id = Group::query()->where('slug', '=', 'user')->soleValue('id');
$user->can_download = 1;
$user->can_download = true;
$user->disabled_at = null;
$user->save();
@@ -111,7 +111,7 @@ class FortifyServiceProvider extends ServiceProvider
if ($user->group->slug !== 'banned') {
if ($user->group->slug === 'validating') {
$user->can_download = 1;
$user->can_download = true;
$user->group_id = Group::query()->where('slug', '=', 'user')->soleValue('id');
$user->save();