From: Tom Hughes Date: Wed, 13 Jan 2010 21:30:09 +0000 (+0000) Subject: Make cache distinguish pages views by admins or moderators from those X-Git-Tag: live~6891^2~17 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fa554045e57220a0e87c2cea2ea3e7309f78704a Make cache distinguish pages views by admins or moderators from those viewed by normal users. --- 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