Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Make sure the user object is not null - see previous commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 1, 2014
1 parent 1432d85 commit bf65589
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/core/classes/class.ConfService.php
Expand Up @@ -552,7 +552,10 @@ protected function initRepositoriesListInst($scope = "user")
// LOAD FROM DRIVER
$confDriver = self::getConfStorageImpl();
if($scope == "user"){
$acls = AuthService::getLoggedUser()->mergedRole->listAcls();
$acls = array();
if(AuthService::getLoggedUser() != null){
$acls = AuthService::getLoggedUser()->mergedRole->listAcls();
}
if(!count($acls)) {
$drvList = array();
}else{
Expand Down

0 comments on commit bf65589

Please sign in to comment.