Fix 403 error on not exists application.

Remove countUsers from minecraft server application type.
This commit is contained in:
ErickSkrauch
2018-03-25 22:21:22 +03:00
parent f3f53e752d
commit 4ee8544355
3 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ class OauthClientOwner extends Rule {
/** @var OauthClient|null $client */
$client = OauthClient::findOne($clientId);
if ($client === null) {
return false;
return true;
}
$identity = Yii::$app->user->findIdentityByAccessToken($accessToken);