|
@@ 166-171 (lines=6) @@
|
| 163 |
|
return new ApiErrorResponse('connect', 'user or certificate does not exist'); |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
if ($result['user_is_disabled']) { |
| 167 |
|
$msg = '[VPN] unable to connect, account is disabled'; |
| 168 |
|
$this->storage->addUserMessage($result['user_id'], 'notification', $msg); |
| 169 |
|
|
| 170 |
|
return new ApiErrorResponse('connect', $msg); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if ($result['certificate_is_disabled']) { |
| 174 |
|
$msg = sprintf('[VPN] unable to connect, certificate "%s" is disabled', $result['display_name']); |
|
@@ 173-178 (lines=6) @@
|
| 170 |
|
return new ApiErrorResponse('connect', $msg); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if ($result['certificate_is_disabled']) { |
| 174 |
|
$msg = sprintf('[VPN] unable to connect, certificate "%s" is disabled', $result['display_name']); |
| 175 |
|
$this->storage->addUserMessage($result['user_id'], 'notification', $msg); |
| 176 |
|
|
| 177 |
|
return new ApiErrorResponse('connect', $msg); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
return $this->verifyAcl($profileId, $result['user_id']); |
| 181 |
|
} |