mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fixed installer with OnlineService
This commit is contained in:
parent
63a46804f8
commit
f3edc3fde7
@ -11,6 +11,7 @@ namespace humhub\components;
|
||||
use humhub\components\access\ControllerAccess;
|
||||
use humhub\components\access\StrictAccess;
|
||||
use humhub\components\behaviors\AccessControl;
|
||||
use humhub\models\Setting;
|
||||
use humhub\modules\user\services\IsOnlineService;
|
||||
use Yii;
|
||||
use yii\helpers\Html;
|
||||
@ -221,8 +222,11 @@ class Controller extends \yii\web\Controller
|
||||
|
||||
if (!Yii::$app->request->isAjax || Yii::$app->request->isPjax) {
|
||||
$this->setJsViewStatus();
|
||||
// Update "is online" status ony on full page loads
|
||||
(new IsOnlineService(Yii::$app->user->identity))->updateStatus();
|
||||
|
||||
if (Setting::isInstalled()) {
|
||||
// Update "is online" status ony on full page loads
|
||||
(new IsOnlineService(Yii::$app->user->identity))->updateStatus();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user