Use $this->userdata->id variable in place of Auth::(id) in controllers

This commit is contained in:
DariusIII
2018-09-24 11:28:49 +02:00
parent b7fef38afd
commit 23ab8f0334
11 changed files with 70 additions and 43 deletions
+1 -1
View File
@@ -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) {