Skip to content

Commit

Permalink
Fix test accessibility to destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed May 7, 2016
1 parent 5dbe5d9 commit de15dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def update
end

def destroy
@test = current_user.tests.find(params[:id])
@test = Test.find(params[:id])
authorize @test

if @test.destroy
Expand Down

0 comments on commit de15dad

Please sign in to comment.