mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 03:01:34 +00:00
Replace isAdmin, isDisabled and isModerator functions with direct role checking and remove roleCheck function from User model
This commit is contained in:
@@ -86,7 +86,7 @@ class RssController extends BasePageController
|
||||
$rssToken = $res['api_token'];
|
||||
$maxRequests = $res->role->apirequests;
|
||||
|
||||
if (User::isDisabled($res['id'])) {
|
||||
if ($res->hasRole('Disabled') === true) {
|
||||
Utility::showApiError(101);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user