Don't cache the trace list for logged in users.
[rails.git] / app / controllers / application_controller.rb
index acadfcc251fa13597ca0a6f9763305a1f04a72c9..479f24525bd106277699797d791e9f89af1994c1 100644 (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