| Conditions | 4 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function isUserAllowed(IUser $user, $verb, $ip, $extra = null) |
||
| 37 | { |
||
| 38 | if (parent::isUserAllowed($user, $verb, $ip, $extra) !== 0 && strcasecmp($user->getName(), $extra['username'] ?? '') === 0) { |
||
| 39 | return ($this->getAction() === 'allow') ? 1 : -1; |
||
| 40 | } else { |
||
| 41 | return 0; |
||
| 42 | } |
||
| 45 |