[Isocial-svn] SF.net SVN: isocial: [92] app/application_controller.php
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <agu...@us...> - 2008-03-17 20:05:45
|
Revision: 92 http://isocial.svn.sourceforge.net/isocial/?rev=92&view=rev Author: aguidrevitch Date: 2008-03-17 13:05:51 -0700 (Mon, 17 Mar 2008) Log Message: ----------- only active users can be logged in Modified Paths: -------------- app/application_controller.php Modified: app/application_controller.php =================================================================== --- app/application_controller.php 2008-03-17 20:01:58 UTC (rev 91) +++ app/application_controller.php 2008-03-17 20:05:51 UTC (rev 92) @@ -48,8 +48,10 @@ if (isset($this->session['user_id'])) { $user_id = $this->session['user_id']; if ( $user_id && $user = $this->User->find($user_id)) { - $this->current_user = $user; - return $this->current_user; + if ($user && $user->active) { + $this->current_user = $user; + return $this->current_user; + } } } return false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |