Fix bug in getCurrentUserID()
This commit is contained in:
parent
820ddbb621
commit
93bcf3e641
|
|
@ -62,7 +62,7 @@ class AppController extends Controller {
|
|||
function getCurrentUserID() {
|
||||
$currentuser = $this->getCurrentUser();
|
||||
if($currentuser) {
|
||||
return $currentuser['id'];
|
||||
return $currentuser['User']['id'];
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue