From 6812b496201fad67c6a2257c377dd9958d407242 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Thu, 19 Jul 2018 22:22:55 +0200 Subject: [PATCH] Fix: invalid originator setting for SpaceUnArchived activity --- .../space/modules/manage/controllers/DefaultController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protected/humhub/modules/space/modules/manage/controllers/DefaultController.php b/protected/humhub/modules/space/modules/manage/controllers/DefaultController.php index 0108e55d75..737dd4a637 100644 --- a/protected/humhub/modules/space/modules/manage/controllers/DefaultController.php +++ b/protected/humhub/modules/space/modules/manage/controllers/DefaultController.php @@ -110,7 +110,7 @@ class DefaultController extends Controller $space->unarchive(); // Create Activity when the space in unarchieved - SpaceUnArchieved::instance()->from($space)->about($space->owner)->save(); + SpaceUnArchieved::instance()->from(Yii::$app->user->getIdentity())->about($space->owner)->save(); if (Yii::$app->request->isAjax) { Yii::$app->response->format = 'json';