]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_controller.rb
Merge branch 'master' into moderation
[rails.git] / app / controllers / old_controller.rb
index f41a94a33eb9d73f13da2f440899bd778ab88b63..3815f5ae05fe231f079384cf7b27dc7a0922b30f 100644 (file)
@@ -64,12 +64,12 @@ class OldController < ApplicationController
     end
 
     # just return an empty 200 OK for success
-    render :nothing => true
+    head :ok
   end
 
   private
 
   def show_redactions?
-    @user && @user.moderator? && params[:show_redactions] == "true"
+    current_user && current_user.moderator? && params[:show_redactions] == "true"
   end
 end