aboutsummaryrefslogtreecommitdiff
path: root/endpoints/rest.php
diff options
context:
space:
mode:
Diffstat (limited to 'endpoints/rest.php')
-rw-r--r--endpoints/rest.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/endpoints/rest.php b/endpoints/rest.php
index cb47804ed..40631e81d 100644
--- a/endpoints/rest.php
+++ b/endpoints/rest.php
@@ -41,14 +41,12 @@
$api_header = get_and_validate_api_headers();
$ApiEnvironment->api_header = $api_header;
- // Get site
-
-
-
-
// Pull API user details
$ApiEnvironment->api_user = get_api_user($api_header->api_key);
+ // Get site
+ $ApiEnvironment->site_id = $ApiEnvironment->api_user->side_id;
+
if ($ApiEnvironment->api_user)
{
// Get the secret key