mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Use $this->userdata->id variable in place of Auth::(id) in controllers
This commit is contained in:
@@ -28,7 +28,7 @@ class GetNzbController extends BasePageController
|
||||
|
||||
// Page is accessible only by the rss token, or logged in users.
|
||||
if (Auth::check()) {
|
||||
$uid = Auth::id();
|
||||
$uid = $this->userdata->id;
|
||||
$maxDownloads = $this->userdata->role->downloadrequests;
|
||||
$rssToken = $this->userdata['api_token'];
|
||||
if ($this->userdata->hasRole('Disabled') === true) {
|
||||
|
||||
Reference in New Issue
Block a user