X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7381dad23bcb737d5b08a73027eda9a80c3ef293..2d3ff49f5e95e88721a960f856a45f200f664690:/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