Skip to content

Commit

Permalink
chore: prevent indexing of groups with restricted content access
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 26, 2024
1 parent 7ece60f commit 56d02bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/GroupTools/PageLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function noIndexClosedGroups(\Elgg\Event $event): ?array {
return null;
}

if ($page_owner->isPublicMembership()) {
if ($page_owner->getContentAccessMode() === \ElggGroup::CONTENT_ACCESS_MODE_UNRESTRICTED) {
// public group
return null;
}
Expand Down

0 comments on commit 56d02bd

Please sign in to comment.