]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_controller.rb
Use CanCanCan for search controller
[rails.git] / app / controllers / old_controller.rb
index 9adf141d959f4a319ec39c64a97826a573faf49b..4f01b1e2a1da41b5bd4d44fb1d5ba8c623ef1f4d 100644 (file)
@@ -70,6 +70,6 @@ class OldController < ApplicationController
   private
 
   def show_redactions?
-    current_user && current_user.moderator? && params[:show_redactions] == "true"
+    current_user&.moderator? && params[:show_redactions] == "true"
   end
 end