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

Commit

Permalink
Do not include shared repositories in updateAdminRights or it can end…
Browse files Browse the repository at this point in the history
… up filing the role with tons of repos.
  • Loading branch information
cdujeu committed Dec 30, 2014
1 parent 3c9029f commit d6fb94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.AuthService.php
Expand Up @@ -598,7 +598,7 @@ public static function getDefaultRootId()
public static function updateAdminRights($adminUser)
{
if(ConfService::getCoreConf("SKIP_ADMIN_RIGHTS_ALL_REPOS") !== true){
foreach (ConfService::getRepositoriesList("all") as $repoId => $repoObject) {
foreach (ConfService::getRepositoriesList("all", false) as $repoId => $repoObject) {
if(!self::allowedForCurrentGroup($repoObject, $adminUser)) continue;
if($repoObject->hasParent() && $repoObject->getParentId() != $adminUser->getId()) continue;
$adminUser->personalRole->setAcl($repoId, "rw");
Expand Down

0 comments on commit d6fb94f

Please sign in to comment.