Skip to content

Commit

Permalink
Merge pull request #12 from dkloepfer/4_4_seepex
Browse files Browse the repository at this point in the history
spx 1736 search will terminate at root folder
  • Loading branch information
shecken committed Oct 23, 2015
2 parents d81ae81 + b63318e commit c055c3e
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 c055c3e

Please sign in to comment.