Fix nzb files download

This commit is contained in:
DariusIII
2018-08-02 22:59:31 +02:00
parent b15b14a162
commit 3ed67a59dd
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ class GetNzbController extends BasePageController
$uid = Auth::id();
$maxDownloads = $this->userdata->role->downloadrequests;
$rssToken = $this->userdata['api_token'];
if (User::isDisabled($this->userdata['username'])) {
if (User::isDisabled($this->userdata['id'])) {
Utility::showApiError(101);
}
} else {
@@ -47,7 +47,7 @@ class GetNzbController extends BasePageController
$uid = $res['id'];
$rssToken = $res['api_token'];
$maxDownloads = $res->role->downloadrequests;
if (User::isDisabled($res['username'])) {
if (User::isDisabled($res['id'])) {
Utility::showApiError(101);
}
}