mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: Account Controller exception when user is not logged in
This commit is contained in:
parent
ac243b7670
commit
6b7e5ad7e9
@ -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)
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user