Skip to content

Commit

Permalink
Fix scope again
Browse files Browse the repository at this point in the history
  • Loading branch information
IvaKop committed Sep 27, 2024
1 parent a3c3aaf commit 4b3c37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/app/policies/cosponsorship_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(user, scope)
end

def resolve
scope.where(post_id: Pundit.policy_scope(user, Idea))
scope.where(idea_id: Pundit.policy_scope(user, Idea))
end
end

Expand Down

0 comments on commit 4b3c37b

Please sign in to comment.