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

Commit

Permalink
Fix null user getLock at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 12, 2014
1 parent b9e48f2 commit 73c78cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/core/classes/class.ConfService.php
Expand Up @@ -563,9 +563,11 @@ protected function initRepositoriesListInst($scope = "user", $includeShared = tr
{
// APPEND CONF FILE REPOSITORIES
$loggedUser = AuthService::getLoggedUser();
$l = $loggedUser->getLock();
$objList = array();
if(!empty($l)) return $objList;
if($loggedUser != null){
$l = $loggedUser->getLock();
if( !empty($l)) return $objList;
}
foreach ($this->configs["DEFAULT_REPOSITORIES"] as $index=>$repository) {
$repo = self::createRepositoryFromArray($index, $repository);
if($scope == "user" && $loggedUser != null && !self::repositoryIsAccessible($index, $repo, $loggedUser)){
Expand Down

0 comments on commit 73c78cf

Please sign in to comment.