| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | 6 | public function isEmailWhiteListed() |
|
| 62 | { |
||
| 63 | // user_name is set, load the blacklist to start checking |
||
| 64 | 6 | $list = $this->getSubAccessControlList($this->getShortClassName()); |
|
| 65 | |||
| 66 | // currently if list is not set we do not check it |
||
| 67 | 6 | if (!isset($list['userEmail'])) { |
|
| 68 | 1 | return true; |
|
| 69 | } |
||
| 70 | |||
| 71 | 5 | return $this->isEmailInList($list); |
|
| 72 | } |
||
| 73 | } |
||
| 74 |