diff --git a/src/Api/Tree/Get.php b/src/Api/Tree/Get.php
index <HASH>..<HASH> 100644
--- a/src/Api/Tree/Get.php
+++ b/src/Api/Tree/Get.php
@@ -184,7 +184,8 @@ class Get
         }
 
         /* root customer */
-        if (is_null($rootCustId)) {
+        $isLiveMode = !$this->hlpCfg->getApiAuthenticationEnabledDevMode();
+        if (is_null($rootCustId) || $isLiveMode) {
             $rootCustId = $this->authenticator->getCurrentCustomerId();
         }
         if (is_null($onDate)) {
MOBI-<I> - DCP API: force authorization in production mode