Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
klees committed Oct 22, 2015
1 parent 3bd2ef6 commit f99e167
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Services/GEV/Utils/classes/class.gevUserUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,8 @@ static public function removeInactiveUsers($a_usr_ids) {

public function getDirectSuperiors() {
require_once("Modules/OrgUnit/classes/class.ilObjOrgUnitTree.php");
require_once("Services/GEV/Utils/classes/class.gevOrgUnitUtils.php");
$tree = ilObjOrgUnitTree::_getInstance();
$sups = array();
//$sups = gevOrgUnitUtils::getSuperiorsOfUser($this->user_id);
$look_above_orgus = array();
$orgus = $tree->getOrgUnitOfUser($this->user_id);
foreach( $orgus as $ref_id ) {
Expand All @@ -1207,10 +1205,10 @@ public function getDirectSuperiors() {
if(in_array($this->user_id,$employees)) {
$sups = array_merge($sups,$superiors);
} else {
$look_above_orgus[] = $ref_id;
$look_above_orgus[] = $ref_id;
}
if(in_array($this->user_id,$superiors)) {
$look_above_orgus[] = $ref_id;
$look_above_orgus[] = $ref_id;
}
}

Expand Down

0 comments on commit f99e167

Please sign in to comment.