diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index d3b2af0925..5ef8eb5021 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -226,7 +226,7 @@ Http::init() default => ACTOR_TYPE_KEY_ORGANIZATION, }); - if ($apiKey->getType() === API_KEY_STANDARD) { + if ($apiKey->getType() === API_KEY_STANDARD || $apiKey->getType() === API_KEY_ORGANIZATION) { $userClone ->setAttribute('$id', $dbKey->getId()) ->setAttribute('$sequence', $dbKey->getSequence());