mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Fix: Exception on notification overview page when not logged in
This commit is contained in:
parent
4db81eee83
commit
161db160f8
@ -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
|
- Enh: Option to disable e-mail address requirement in User model
|
||||||
- Fix: Overwrite of static image in theme + added documentation section
|
- Fix: Overwrite of static image in theme + added documentation section
|
||||||
- Fix: Account Controller exception when user is not logged in
|
- 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)
|
1.2.2 (August 2, 2017)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @link https://www.humhub.org/
|
* @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
|
* @license https://www.humhub.com/licences
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -39,6 +39,10 @@ class OverviewController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function actionIndex()
|
public function actionIndex()
|
||||||
{
|
{
|
||||||
|
if (Yii::$app->user->isGuest) {
|
||||||
|
return Yii::$app->user->loginRequired();
|
||||||
|
}
|
||||||
|
|
||||||
$pageSize = 10;
|
$pageSize = 10;
|
||||||
$notifications = [];
|
$notifications = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user