]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Re-enable issue reassigning.
[rails.git] / app / controllers / issues_controller.rb
index 25358796595306a8640469c33d8dc5a74507151b..3f28ec44f1626a2917672430ace78ea221259315 100644 (file)
@@ -123,22 +123,8 @@ class IssuesController < ApplicationController
     end
   end
 
     end
   end
 
-  # Reassign Issues between Administrators and Moderators
-  def reassign_issue
-    @issue.assigned_role = upgrade_issue(@issue.assigned_role)
-    @issue.save!
-  end
-
   private
 
   private
 
-  def upgrade_issue(type)
-    if type == "moderator"
-      "administrator"
-    else
-      "moderator"
-    end
-  end
-
   def set_issues
     @admin_issues = %w[DiaryEntry DiaryComment User]
     @moderator_issues = %w[Changeset Note]
   def set_issues
     @admin_issues = %w[DiaryEntry DiaryComment User]
     @moderator_issues = %w[Changeset Note]