X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7d41b926cfd4edb026056fd5f421e78f5a6681c8..7c2ca3efb1831647348fc4a83a8aceaa5fc2f356:/app/controllers/old_node_controller.rb diff --git a/app/controllers/old_node_controller.rb b/app/controllers/old_node_controller.rb index 13f8b00be..02290ffa2 100644 --- a/app/controllers/old_node_controller.rb +++ b/app/controllers/old_node_controller.rb @@ -31,7 +31,7 @@ class OldNodeController < ApplicationController end def version - if @old_node.redacted? and (@user.nil? or not @user.moderator?) and not params[:show_redactions] == "true" + if @old_node.redacted? and not (@user and @user.moderator? and params[:show_redactions] == "true") render :nothing => true, :status => :forbidden else