]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Altered old_way stuff to be Railsy like old_node is now
[rails.git] / app / controllers / old_node_controller.rb
index 13f8b00be0a687051c99331acdb0128f8b61f7fc..02290ffa217b729edcafb44511e053f169d6383b 100644 (file)
@@ -31,7 +31,7 @@ class OldNodeController < ApplicationController
   end
   
   def version
   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
       render :nothing => true, :status => :forbidden
 
     else