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

Commit

Permalink
Do not "enlargeToOwn" the events - check that it has no side effect
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 9, 2014
1 parent 3b2e53c commit acc1c3b
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -117,14 +117,12 @@ public function loadUserFeed($actionName, $httpVars, $fileVars)
if (isSet($httpVars["repository_id"]) && $u->mergedRole->canRead($httpVars["repository_id"])) {
$authRepos[] = $httpVars["repository_id"];
} else {
$acls = AuthService::getLoggedUser()->mergedRole->listAcls();
foreach ($acls as $repoId => $rightString) {
if($rightString == "r" | $rightString == "rw") $authRepos[] = $repoId;
}
$accessibleRepos = ConfService::getAccessibleRepositories(AuthService::getLoggedUser(), false, true, true);
$authRepos = array_keys($accessibleRepos);
}
$offset = isSet($httpVars["offset"]) ? intval($httpVars["offset"]): 0;
$limit = isSet($httpVars["limit"]) ? intval($httpVars["limit"]): 15;
$res = $this->eventStore->loadEvents($authRepos, $userId, $userGroup, $offset, $limit, (isSet($httpVars["repository_id"])?false:true));
$res = $this->eventStore->loadEvents($authRepos, $userId, $userGroup, $offset, $limit, /*(isSet($httpVars["repository_id"])?false:true)*/false);
$mess = ConfService::getMessages();
$format = "html";
if (isSet($httpVars["format"])) {
Expand Down

0 comments on commit acc1c3b

Please sign in to comment.