Fix: humhub\modules\live\Module::getLegitimateContentContainerIds behaviour with friendship module enabled

This commit is contained in:
buddh4 2017-10-10 11:45:47 +02:00
parent eb65095c78
commit 172bc490b6
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ Important note for LDAP users: There is a new setting "ID Attribute" which shoul
- Enh: Added `MobileTargetProvider` abstraction for mobile push notifications
- Enh: Added `humhub:notification:updateCount` js event
- Enh: Show space administrators and moderators in member snippet
- Fix: `humhub\modules\live\Module::getLegitimateContentContainerIds` behaviour with friendship module enabled
1.2.2 (August 2, 2017)
--------------------------------

View File

@ -92,8 +92,8 @@ class Module extends \humhub\components\Module
// Include friends
if (Yii::$app->getModule('friendship')->isEnabled) {
foreach (Friendship::getFriendsQuery($user)->all() as $user) {
$legitimation[Content::VISIBILITY_PRIVATE][] = $user->contentContainerRecord->id;
foreach (Friendship::getFriendsQuery($user)->all() as $friend) {
$legitimation[Content::VISIBILITY_PRIVATE][] = $friend->contentContainerRecord->id;
}
}