Fix #2702: Disable content search for guest users due to space visibility

This commit is contained in:
buddh4 2017-12-13 20:56:19 +01:00
parent dd9b9cf877
commit eaea259383
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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']
];
}