|
@@ 149-154 (lines=6) @@
|
| 146 |
|
return new ApiErrorResponse('connect', 'user or certificate does not exist'); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
if ($result['user_is_disabled']) { |
| 150 |
|
$msg = 'unable to connect, user account is disabled'; |
| 151 |
|
$this->storage->addUserMessage($result['user_id'], 'error', $msg, new DateTime('now')); |
| 152 |
|
|
| 153 |
|
return new ApiErrorResponse('connect', $msg); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
if ($result['certificate_is_disabled']) { |
| 157 |
|
$msg = sprintf('unable to connect, certificate "%s" is disabled', $result['display_name']); |
|
@@ 156-161 (lines=6) @@
|
| 153 |
|
return new ApiErrorResponse('connect', $msg); |
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
if ($result['certificate_is_disabled']) { |
| 157 |
|
$msg = sprintf('unable to connect, certificate "%s" is disabled', $result['display_name']); |
| 158 |
|
$this->storage->addUserMessage($result['user_id'], 'error', $msg, new DateTime('now')); |
| 159 |
|
|
| 160 |
|
return new ApiErrorResponse('connect', $msg); |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
return $this->verifyAcl($profileId, $result['user_id']); |
| 164 |
|
} |