From fa554045e57220a0e87c2cea2ea3e7309f78704a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 13 Jan 2010 21:30:09 +0000 Subject: [PATCH] Make cache distinguish pages views by admins or moderators from those viewed by normal users. --- app/controllers/application_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2