mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-28 06:20:42 -05:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user