<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -43,7 +43,6 @@ class ScreenshotsController &lt; Base::ProjectSubpage
       @invalid_screenshots.each{|screenshot| set_flash(screenshot) }
       redirect_to project_url(@project)+&quot;#screenshots_add&quot;
     end
-    
   end
   
   def destroy</diff>
      <filename>app/controllers/screenshots_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,15 @@
 module AuthenticatedSystem
   protected
+    # Inclusion hook to make #current_user and #logged_in?
+    # available as ActionView helper methods.
+    def self.included(base)
+      base.send :helper_method, :current_user, :logged_in?, :anon_user, :current_or_anon_user, :admin?
+    end
+
     # Returns true or false if the user is logged in.
     # Preloads @current_user with the user model if they're logged in.
     def logged_in?
-      current_user != :false
+      current_user.is_a? User
     end
     
     def current_or_anon_user
@@ -104,12 +110,6 @@ module AuthenticatedSystem
       session[:return_to] = nil
     end
 
-    # Inclusion hook to make #current_user and #logged_in?
-    # available as ActionView helper methods.
-    def self.included(base)
-      base.send :helper_method, :current_user, :logged_in?, :anon_user, :current_or_anon_user, :admin?
-    end
-
     # Called from #current_user.  First attempt to login by the user id stored in the session.
     def login_from_session
       self.current_user = User.find(session[:user_id]) if session[:user_id]</diff>
      <filename>lib/authenticated_system.rb</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/images/default_screenshots/medium.png</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/images/default_screenshots/original.png</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/images/default_screenshots/thumb.png</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/images/default_preview.png</filename>
    </removed>
    <removed>
      <filename>public/images/default_screenshot.png</filename>
    </removed>
    <removed>
      <filename>public/images/default_thumb.png</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c7193ccf420a656db0d2a7fd16ceaef5b41098bc</id>
    </parent>
  </parents>
  <author>
    <name>Jacques Crocker</name>
    <email>jcnetdev@gmail.com</email>
  </author>
  <url>http://github.com/jcnetdev/opensourcerails/commit/bb0f19e3bde33f09b231e181ad05d0f84fdaed9a</url>
  <id>bb0f19e3bde33f09b231e181ad05d0f84fdaed9a</id>
  <committed-date>2008-10-01T09:05:44-07:00</committed-date>
  <authored-date>2008-10-01T09:05:44-07:00</authored-date>
  <message>Updating Screenshots</message>
  <tree>c6a0544fa8b02d611d516f6c62e403d9b804f7e8</tree>
  <committer>
    <name>Jacques Crocker</name>
    <email>jcnetdev@gmail.com</email>
  </committer>
</commit>
