Skip to content

Commit

Permalink
Merge pull request #212 from humhub/fix/210-enable-space-module
Browse files Browse the repository at this point in the history
Fix enabling of module on Space with default private content
  • Loading branch information
luke- authored Mar 4, 2024
2 parents 2e986bb + 0526fde commit 02e886d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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()`
Expand Down
2 changes: 0 additions & 2 deletions models/FileSystemItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand All @@ -148,7 +147,6 @@ public function afterSave($insert, $changedAttributes)
}

parent::afterSave($insert, $changedAttributes);

}

/**
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"organisation",
"sharing"
],
"version": "0.16.4",
"version": "0.16.5",
"humhub": {
"minVersion": "1.14"
},
Expand Down

0 comments on commit 02e886d

Please sign in to comment.