Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janzenisaac committed Apr 8, 2024
1 parent 317ad29 commit 695c28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/house_ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def self.all_for_logged_in_users(scope)
self.all.select(&:visible_to_logged_in_users)
else
# otherwise, filter by group and visible categories
self.all.select do |ad|
self.all.select do |ad|
(
ad.group_ids.any? { |group_id| scope.user.groups.pluck(:id).include?(group_id) } ||
ad.group_ids.include?(Group::AUTO_GROUPS[:everyone]) || ad.group_ids.empty?
Expand Down

0 comments on commit 695c28f

Please sign in to comment.