]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Re-enable issue reassigning.
[rails.git] / app / controllers / browse_controller.rb
index a5aa5277453581036b00fbeb4632cb665885ddb3..41fa14aae07ff05a9f7aa6369fe5184cd208a576 100644 (file)
@@ -58,7 +58,7 @@ class BrowseController < ApplicationController
   def changeset
     @type = "changeset"
     @changeset = Changeset.find(params[:id])
-    @comments = if @user && @user.moderator?
+    @comments = if current_user && current_user.moderator?
                   @changeset.comments.unscope(:where => :visible).includes(:author)
                 else
                   @changeset.comments.includes(:author)
@@ -77,7 +77,7 @@ class BrowseController < ApplicationController
   def note
     @type = "note"
 
-    if @user && @user.moderator?
+    if current_user && current_user.moderator?
       @note = Note.find(params[:id])
       @note_comments = @note.comments.unscope(:where => :visible)
     else