refactor: swap comparing ids to is() and isNot

This commit is contained in:
Roardom
2023-06-22 09:39:20 +00:00
parent 140311100f
commit aef482682b
33 changed files with 63 additions and 63 deletions
+1 -1
View File
@@ -144,7 +144,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->active, 404);
$rss = Rss::query()
->where(