mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: humhub\modules\live\Module::getLegitimateContentContainerIds
behaviour with friendship module enabled
This commit is contained in:
parent
eb65095c78
commit
172bc490b6
@ -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)
|
||||
--------------------------------
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user