|
@@ 74-76 (lines=3) @@
|
| 71 |
|
$userId = self::getUserId($commonName); |
| 72 |
|
|
| 73 |
|
// check if user is disabled |
| 74 |
|
if (true === $this->users->isDisabled($userId)) { |
| 75 |
|
return new ApiResponse('connect', ['ok' => false, 'error' => sprintf('user "%s" disabled', $userId)]); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// check if the common_name is disabled |
| 79 |
|
if (true === $this->commonNames->isDisabled($commonName)) { |
|
@@ 79-81 (lines=3) @@
|
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// check if the common_name is disabled |
| 79 |
|
if (true === $this->commonNames->isDisabled($commonName)) { |
| 80 |
|
return new ApiResponse('connect', ['ok' => false, 'error' => sprintf('common_name "%s" disabled', $commonName)]); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
// if the ACL is enabled, verify that the user is allowed to |
| 84 |
|
// connect |