Skip to content

Commit

Permalink
Fix entries controller responding with 404 when logged out/unauthoriz…
Browse files Browse the repository at this point in the history
…ed (#614)
  • Loading branch information
chvp authored Feb 5, 2025
1 parent 231e3de commit 2c48ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def destroy
private

def set_entry
@entry = policy_scope(Entry).find params[:id]
@entry = Entry.find params[:id]
authorize @entry
end

Expand Down

0 comments on commit 2c48ae9

Please sign in to comment.