@@ 557-562 (lines=6) @@ | ||
554 | $this->currentUser->getId(), |
|
555 | $this->getOrganizationContextId() |
|
556 | ); |
|
557 | } elseif (AccessLevel::DEEP_LEVEL === $this->accessLevel) { |
|
558 | return $this->treeProvider->getTree()->getUserSubordinateBusinessUnitIds( |
|
559 | $this->currentUser->getId(), |
|
560 | $this->getOrganizationContextId() |
|
561 | ); |
|
562 | } elseif (AccessLevel::GLOBAL_LEVEL === $this->accessLevel) { |
|
563 | return $this->businessUnitManager->getBusinessUnitIds($this->getOrganizationContextId()); |
|
564 | } |
|
565 |
@@ 68-73 (lines=6) @@ | ||
65 | $ids = $this->treeProvider->getTree()->getOrganizationBusinessUnitIds( |
|
66 | $this->getOrganizationContextId() |
|
67 | ); |
|
68 | } elseif (AccessLevel::DEEP_LEVEL === $this->accessLevel) { |
|
69 | $ids = $this->treeProvider->getTree()->getUserSubordinateBusinessUnitIds( |
|
70 | $currentUser->getId(), |
|
71 | $this->getOrganizationContextId() |
|
72 | ); |
|
73 | } elseif (AccessLevel::LOCAL_LEVEL === $this->accessLevel) { |
|
74 | $ids = $this->treeProvider->getTree()->getUserBusinessUnitIds( |
|
75 | $currentUser->getId(), |
|
76 | $this->getOrganizationContextId() |