diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 618eedb92a..c39a6dc2a8 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -23,6 +23,7 @@ HumHub Change Log - Fix: Add example users to default Users group - Fix #2851: getting model attribute value using Html::getAttributeValue() - Fix #2844: Directory member search broken on page 2 +- Fix #2702: Disable content search for guest users due to space visibility 1.2.3 (October 23, 2017) diff --git a/protected/humhub/modules/search/controllers/SearchController.php b/protected/humhub/modules/search/controllers/SearchController.php index 8c69c5141d..745f996689 100644 --- a/protected/humhub/modules/search/controllers/SearchController.php +++ b/protected/humhub/modules/search/controllers/SearchController.php @@ -41,13 +41,10 @@ class SearchController extends Controller /** * @inheritdoc */ - public function behaviors() + public function getAccessRules() { return [ - 'acl' => [ - 'class' => \humhub\components\behaviors\AccessControl::className(), - 'guestAllowedActions' => ['index'] - ] + ['login'] ]; }