Skip to content

Commit 4bf3365

Browse files
authored
Merge pull request #66 from challgren/patch-1
[2.0.0-beta] Updating readme
2 parents 57b2d3e + ffa0c78 commit 4bf3365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AppController extends Controller
8080

8181
protected function _setCurrentUser($user = null)
8282
{
83-
if (!$user) {
83+
if (!$user && $this->request->getAttribute('identity')) {
8484
$user = $this->request->getAttribute('identity')->getOriginalData();
8585
}
8686

0 commit comments

Comments
 (0)