X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/72e59b49fa0512e5c7d16217edce62225094ffe3..990f3eba4069f98a11d98f18b18d0e35bcf295f4:/app/controllers/old_node_controller.rb?ds=sidebyside 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