Fix another instance of wrong isDisabled check

This commit is contained in:
DariusIII
2018-08-03 00:34:06 +02:00
parent 55aaaec56a
commit ebfa8210cb
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -85,9 +85,8 @@ class RssController extends BasePageController
$uid = $res['id'];
$rssToken = $res['api_token'];
$maxRequests = $res->role->apirequests;
$username = $res['username'];
if (User::isDisabled($username)) {
if (User::isDisabled($res['id'])) {
Utility::showApiError(101);
}
}