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