| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function render($feUserId) |
||
| 44 | { |
||
| 45 | if ($this->security->getUser()->getUid() == $feUserId) { |
||
| 46 | return "self"; |
||
| 47 | } |
||
| 48 | |||
| 49 | $userRole = $this->frontendUserHelper->getUserRole($feUserId); |
||
| 50 | |||
| 51 | if ($userRole === Security::ROLE_LIBRARIAN) { |
||
| 52 | return "librarian"; |
||
| 53 | } |
||
| 54 | |||
| 55 | if ($userRole == Security::ROLE_RESEARCHER) { |
||
| 56 | return "user"; |
||
| 57 | } |
||
| 58 | |||
| 59 | return null; |
||
| 60 | } |
||
| 62 |