X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7381dad23bcb737d5b08a73027eda9a80c3ef293..a517441db5f1a8d69785e960fd7cb9ef31870a20:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index dc17a2162..6750b5d8e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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