Skip to content

Commit 56d02bd

Browse files
committed
chore: prevent indexing of groups with restricted content access
1 parent 7ece60f commit 56d02bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/ColdTrick/GroupTools/PageLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function noIndexClosedGroups(\Elgg\Event $event): ?array {
2121
return null;
2222
}
2323

24-
if ($page_owner->isPublicMembership()) {
24+
if ($page_owner->getContentAccessMode() === \ElggGroup::CONTENT_ACCESS_MODE_UNRESTRICTED) {
2525
// public group
2626
return null;
2727
}

0 commit comments

Comments
 (0)