refactor: replace users.active with users.email_verified_at

This is the correct column intended to be used by the Laravel framework. `active` seems to be a custom column that was implemented in UNIT3D before Laravel added email verification in version 5.7.
This commit is contained in:
Roardom
2025-06-11 05:45:23 +00:00
parent 7a11466f98
commit 0d92098d6f
11 changed files with 48 additions and 17 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ class RssController extends Controller
$bannedGroup = cache()->rememberForever('banned_group', fn () => Group::where('slug', '=', 'banned')->pluck('id'));
$disabledGroup = cache()->rememberForever('disabled_group', fn () => Group::where('slug', '=', 'disabled')->pluck('id'));
abort_if($user->group_id === $bannedGroup[0] || $user->group_id === $disabledGroup[0] || !$user->active, 404);
abort_if($user->group_id === $bannedGroup[0] || $user->group_id === $disabledGroup[0] || $user->email_verified_at === null, 404);
$rss = Rss::query()
->where(