Skip to content

Commit

Permalink
[E] Include anon RG when public annotation disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend authored and zdavis committed Feb 27, 2024
1 parent c0e7fc3 commit 5fa6c21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/hoc/withReadingGroups/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export default function withReadingGroups(WrappedComponent) {
if (!this.props.readingGroups) return [];
if (this.canEngagePublicly) return this.props.readingGroups;
return this.props.readingGroups.filter(
rg => rg.attributes.privacy === "private"
rg =>
rg.attributes.privacy === "private" ||
rg.attributes.privacy === "anonymous"
);
}

Expand Down

0 comments on commit 5fa6c21

Please sign in to comment.