| Conditions | 8 |
| Paths | 5 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function addLinks() |
||
| 26 | { |
||
| 27 | if($this->user !== false && $this->user !== null) |
||
| 28 | { |
||
| 29 | if($this->user->isInGroupNamed('LDAPAdmins') || $this->user->isInGroupNamed('AFs')) |
||
| 30 | { |
||
| 31 | $this->addLink('Admin', $this->profiles_root.'/_admin/index.php'); |
||
| 32 | } |
||
| 33 | if(($this->user->isInGroupNamed('Leads') || $this->user->isInGroupNamed('CC')) || $this->user->isInGroupNamed('AFs')) |
||
| 34 | { |
||
| 35 | $this->addLink('Leads', $this->profiles_root.'/lead/index.php'); |
||
| 36 | } |
||
| 37 | $this->addLink('My Profile', $this->profiles_root.'/profile.php'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 42 |