Fix linting cops
This commit is contained in:
parent
056fe5ec3f
commit
31212b4f1c
4 changed files with 6 additions and 6 deletions
|
|
@ -52,8 +52,8 @@ class EventAttachmentsController < ApplicationController
|
|||
|
||||
if !organizer_or_admin?
|
||||
begin
|
||||
event = current_user.events.find(params[:proposal_id])
|
||||
rescue => e
|
||||
current_user.events.find(params[:proposal_id])
|
||||
rescue
|
||||
# They certainly aren't allowed to attach a file to someone else's proposal
|
||||
raise ActionController::RoutingError.new('Invalid proposal')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue