]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/reports_controller.rb
Update attribution for Australia
[rails.git] / app / controllers / reports_controller.rb
index 8087268193d9159932826415b33f9e31a05b131c..a04fab5b9ab36c87a19a442c07b277cc59c56250 100644 (file)
@@ -52,12 +52,15 @@ class ReportsController < ApplicationController
 
   def default_assigned_role
     case issue_params[:reportable_type]
-    when "Note" then "moderator"
-    when "User" then case report_params[:category]
-                     when "vandal" then "moderator"
-                     else "administrator"
-                     end
-    else "administrator"
+    when "Note"
+      "moderator"
+    when "User"
+      case report_params[:category]
+      when "vandal" then "moderator"
+      else "administrator"
+      end
+    else
+      "administrator"
     end
   end
 end