Merge pull request #2624 from dereuromark/2.5-loggedin

2.5 loggedin
This commit is contained in:
Mark Story 2014-01-07 11:27:39 -08:00
commit 7f2e0a29a4

View file

@ -806,6 +806,7 @@ class AuthComponent extends Component {
* Check whether or not the current user has data in the session, and is considered logged in. * Check whether or not the current user has data in the session, and is considered logged in.
* *
* @return boolean true if the user is logged in, false otherwise * @return boolean true if the user is logged in, false otherwise
* @deprecated Since 2.5. Use AuthComponent::user() directly.
*/ */
public function loggedIn() { public function loggedIn() {
return (bool)$this->user(); return (bool)$this->user();