mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update handling of user and role disabled categories
This commit is contained in:
@@ -11,7 +11,6 @@ use App\Models\Category;
|
||||
use App\Models\Settings;
|
||||
use Blacklight\Contents;
|
||||
use App\Models\Forumpost;
|
||||
use App\Models\RoleExcludedCategory;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Pagination\LengthAwarePaginator;
|
||||
|
||||
@@ -225,7 +224,6 @@ class BasePageController extends Controller
|
||||
protected function setUserPreferences(): void
|
||||
{
|
||||
$this->userdata['categoryexclusions'] = User::getCategoryExclusion(Auth::id());
|
||||
$this->userdata['rolecategoryexclusions'] = RoleExcludedCategory::getRoleCategoryExclusion($this->userdata['roles_id']);
|
||||
|
||||
// Change the theme to user's selected theme if they selected one, else use the admin one.
|
||||
if ((int) Settings::settingValue('site.main.userselstyle') === 1) {
|
||||
|
||||
Reference in New Issue
Block a user