Skip to content

Commit

Permalink
Fix group typesense scope
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Oct 13, 2024
1 parent 56677af commit dc38a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/group_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def resolve
end
end

class TypesenseScope < TypesenseScope
class TypesensualScope < TypesensualScope
def resolve
group_ids = GroupMember.joins(:group).merge(Group.closed).for_user(user).pluck(:group_id)
search = search.filter("(id:=[#{group_ids.compact.join(',')}] || privacy:=[open,restricted])")
Expand Down

0 comments on commit dc38a21

Please sign in to comment.