Fixes ACCOUNTS-54A. Include deleted applications in the lookup for exists applications.

This commit is contained in:
ErickSkrauch
2018-11-11 13:48:23 +03:00
parent 9620ff75eb
commit 3646bfcb64
3 changed files with 24 additions and 2 deletions

View File

@@ -90,7 +90,10 @@ class OauthClientForm {
}
protected function isClientExists(string $id): bool {
return OauthClient::find()->andWhere(['id' => $id])->exists();
return OauthClient::find()
->includeDeleted()
->andWhere(['id' => $id])
->exists();
}
}