From eaea2593831a61af72c1d27274c3d327167e0567 Mon Sep 17 00:00:00 2001 From: buddh4 Date: Wed, 13 Dec 2017 20:56:19 +0100 Subject: [PATCH] Fix #2702: Disable content search for guest users due to space visibility --- protected/humhub/docs/CHANGELOG.md | 1 + .../humhub/modules/search/controllers/SearchController.php | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) 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'] ]; }