Fix: Account Controller exception when user is not logged in

This commit is contained in:
Lucas Bartholemy 2017-08-09 11:28:07 +02:00
parent ac243b7670
commit 6b7e5ad7e9
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Important note for LDAP users: There is a new setting "ID Attribute" which shoul
- Enh: Added LDAP ID attribute to improve user mapping
- Enh: Option to disable e-mail address requirement in User model
- Fix: Overwrite of static image in theme + added documentation section
- Fix: Account Controller exception when user is not logged in
1.2.2 (August 2, 2017)

View File

@ -50,6 +50,10 @@ class AccountController extends BaseAccountController
*/
public function actionIndex()
{
if (Yii::$app->user->isGuest) {
return $this->goHome();
}
return $this->redirect(Yii::$app->user->getIdentity()->getUrl());
}