mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Исправлен NPE в AccountOwner
This commit is contained in:
@@ -30,7 +30,10 @@ class AccountOwner extends Rule {
|
||||
}
|
||||
|
||||
$identity = Yii::$app->user->findIdentityByAccessToken($accessToken);
|
||||
/** @noinspection NullPointerExceptionInspection это исключено, т.к. уже сработал authManager */
|
||||
if ($identity === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$account = $identity->getAccount();
|
||||
if ($account === null) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user