Fix: Exception on notification overview page when not logged in

This commit is contained in:
Lucas Bartholemy 2017-08-10 17:48:17 +02:00
parent 4db81eee83
commit 161db160f8
2 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Important note for LDAP users: There is a new setting "ID Attribute" which shoul
- 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
- Fix: Exception on notification overview page when not logged in
1.2.2 (August 2, 2017)

View File

@ -2,7 +2,7 @@
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
@ -39,6 +39,10 @@ class OverviewController extends Controller
*/
public function actionIndex()
{
if (Yii::$app->user->isGuest) {
return Yii::$app->user->loginRequired();
}
$pageSize = 10;
$notifications = [];