diff --git a/app/controllers/asciicasts_controller.rb b/app/controllers/asciicasts_controller.rb index ff6bf35..f6e7871 100644 --- a/app/controllers/asciicasts_controller.rb +++ b/app/controllers/asciicasts_controller.rb @@ -85,7 +85,7 @@ class AsciicastsController < ApplicationController end def ensure_owner! - if @asciicast.user != current_user + if current_user != @asciicast.user redirect_to asciicast_path(@asciicast), :alert => "You can't do that." end end