]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Don't close the sidebar when the visibility of the data layer changes
[rails.git] / app / controllers / application_controller.rb
index dc17a21628b91885d46729fd27fd85d6bdb854e7..6750b5d8e2b7487874fbc180c35b941e0986fabb 100644 (file)
@@ -228,6 +228,8 @@ class ApplicationController < ActionController::Base
       case
       when user.nil? then user = :none
       when user.display_name == controller.params[:display_name] then user = :self
+      when user.administrator? then user = :administrator
+      when user.moderator? then user = :moderator
       else user = :other
       end