]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Correct test for notes opened by inactive users
[rails.git] / app / controllers / notes_controller.rb
index 574c9b8b7d512ba745964711bd76f13fbe2f4631..5d817c9c6cf3f525d4669de10174332978f3e6f0 100644 (file)
@@ -43,7 +43,7 @@ class NotesController < ApplicationController
 
     @note_includes_anonymous = @note.author.nil? || @note_comments.find { |comment| comment.author.nil? }
 
-    @note_comments = @note_comments.drop(1) unless !@note.author.nil? && @note.author.status == "deleted"
+    @note_comments = @note_comments.drop(1) if @note.author.nil? || @note.author.active?
   rescue ActiveRecord::RecordNotFound
     render :template => "browse/not_found", :status => :not_found
   end