diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 92e2d6b..878bc2d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +0.16.5 - Unreleased +------------------------- +- Fix #210: Fix enabling of module on Space with default private content + 0.16.4 - February 8, 2024 ------------------------- - Fix #201: Fix replaced method `friendship\Module::isEnabled()` diff --git a/models/FileSystemItem.php b/models/FileSystemItem.php index f7ad7bb..b5b876c 100644 --- a/models/FileSystemItem.php +++ b/models/FileSystemItem.php @@ -138,7 +138,6 @@ public function afterSave($insert, $changedAttributes) $this->parentFolder->save(); if ($this->parentFolder->content->isPrivate() && $this->content->isPublic()) { $this->content->visibility = Content::VISIBILITY_PRIVATE; - $this->content->save(); } } @@ -148,7 +147,6 @@ public function afterSave($insert, $changedAttributes) } parent::afterSave($insert, $changedAttributes); - } /** diff --git a/module.json b/module.json index 8ef332e..c3f3084 100644 --- a/module.json +++ b/module.json @@ -9,7 +9,7 @@ "organisation", "sharing" ], - "version": "0.16.4", + "version": "0.16.5", "humhub": { "minVersion": "1.14" },