Fix bug in getCurrentUserID()

This commit is contained in:
Karl Cordes 2019-04-07 10:36:25 +10:00
parent 820ddbb621
commit 93bcf3e641

View file

@ -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;