only allow actions (admin) when in right state; prepare decline reason
- fixes on path's and varnames
This commit is contained in:
@@ -36,7 +36,7 @@ function exec_curl_request($handle)
|
||||
if ($http_code == 401) {
|
||||
throw new Exception('Invalid access token provided');
|
||||
}
|
||||
return false;
|
||||
throw new Exception("Server responds: '" . $response['error'] . "'");
|
||||
} else {
|
||||
$response = json_decode($response, true);
|
||||
if (isset($response["event_id"])) {
|
||||
|
||||
Reference in New Issue
Block a user