Don't cache the trace list for logged in users.

This commit is contained in:
Tom Hughes 2010-01-11 00:16:21 +00:00
parent e29e49dc7c
commit f5777a881f
2 changed files with 8 additions and 1 deletions

View file

@ -244,6 +244,12 @@ class ApplicationController < ActionController::Base
expire_fragment(Regexp.new(Regexp.escape(path) + "\\..*"))
end
##
# is the requestor logged in?
def logged_in?
!@user.nil?
end
private
# extract authorisation credentials from headers, returns user = nil if none