]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/note_controller.rb
Fix mass assignment issues
[rails.git] / app / controllers / note_controller.rb
index 4c0c98b6320257027a647149ed4f169dc7639d25..4c6ede6bea9cf082ad4a3fa308193287b4f778f7 100644 (file)
@@ -344,7 +344,7 @@ private
       attributes[:author_name] = name + " (a)"
     end
 
-    note.comments.create(attributes)
+    note.comments.create(attributes, :without_protection => true)
 
     note.comments.map { |c| c.author }.uniq.each do |user|
       if user and user != @user