Skip to content

Commit

Permalink
Revert "3727 Return to the restricted work after login"
Browse files Browse the repository at this point in the history
  • Loading branch information
sarken committed Jul 15, 2015
1 parent 171e299 commit 32bc85f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/application_controller.rb
Expand Up @@ -368,8 +368,7 @@ def check_ownership_or_admin
# includes a special case for restricted works and series, since we want to encourage people to sign up to read them
def check_visibility
if @check_visibility_of.respond_to?(:restricted) && @check_visibility_of.restricted && User.current_user.nil?
store_location
redirect_to login_path(restricted: true)
redirect_to login_path(:restricted => true)
elsif @check_visibility_of.is_a? Skin
access_denied unless logged_in_as_admin? || current_user_owns?(@check_visibility_of) || @check_visibility_of.official?
else
Expand Down

0 comments on commit 32bc85f

Please sign in to comment.