|
@@ 157-162 (lines=6) @@
|
| 154 |
|
return new ApiErrorResponse('connect', 'user or certificate does not exist'); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
if ($result['user_is_disabled']) { |
| 158 |
|
$msg = '[VPN] unable to connect, account is disabled'; |
| 159 |
|
$this->storage->addUserMessage($result['user_id'], 'notification', $msg); |
| 160 |
|
|
| 161 |
|
return new ApiErrorResponse('connect', $msg); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
if ($result['certificate_is_disabled']) { |
| 165 |
|
$msg = sprintf('[VPN] unable to connect, certificate "%s" is disabled', $result['display_name']); |
|
@@ 164-169 (lines=6) @@
|
| 161 |
|
return new ApiErrorResponse('connect', $msg); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
if ($result['certificate_is_disabled']) { |
| 165 |
|
$msg = sprintf('[VPN] unable to connect, certificate "%s" is disabled', $result['display_name']); |
| 166 |
|
$this->storage->addUserMessage($result['user_id'], 'notification', $msg); |
| 167 |
|
|
| 168 |
|
return new ApiErrorResponse('connect', $msg); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
return $this->verifyAcl($profileId, $result['user_id']); |
| 172 |
|
} |