]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Small changes
[rails.git] / app / controllers / issues_controller.rb
index 24ac932d6974edec6236ce310e2148a5a6f3366d..576b3309fc29945e256ec1fc1a6871bd1cd5f3fd 100644 (file)
@@ -57,8 +57,12 @@ class IssuesController < ApplicationController
   end
 
   def create
   end
 
   def create
+
+    # TODO: Find better place to add these
     admin_issues = [ 'DiaryEntry', 'DiaryComment', 'User']
     moderator_issues = []
     admin_issues = [ 'DiaryEntry', 'DiaryComment', 'User']
     moderator_issues = []
+
+    
     @issue = Issue.find_by_reportable_id_and_reportable_type(params[:reportable_id],params[:reportable_type])
     # Check if Issue alrwady exists
     if !@issue 
     @issue = Issue.find_by_reportable_id_and_reportable_type(params[:reportable_id],params[:reportable_type])
     # Check if Issue alrwady exists
     if !@issue