Skip to content

Commit

Permalink
spx 1736 search will terminate at root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Kloepfer committed Oct 23, 2015
1 parent 03919ec commit b63318e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Services/GEV/Utils/classes/class.gevOrgUnitUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,11 @@ public static function getSuperiorsOfUser($user_id) {
$sups = array_merge($sups,$superiors);
}
}

foreach($orgus as $org) {

$org_aux = $tree->getParent($org);
while ((int)$org_aux > 0) {

while ($org_aux != ROOT_FOLDER_ID) {
$sups = array_merge($sups,$tree->getSuperiors($org_aux));
$org_aux = $tree->getParent($org_aux);
}
Expand Down

0 comments on commit b63318e

Please sign in to comment.