diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 359c5e0a5b..baad8ff7ba 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -369,7 +369,7 @@ Http::init() * But, for actions on resources (sites, functions, etc.) in a non-console project, we explicitly check * whether the admin user has necessary permission on the project (sites, functions, etc. don't have permissions associated to them). */ - if ($isAdminProjectRequest && (empty($apiKey) || $isOAuthAdminKey)) { + if ($isAdminProjectRequest && empty($apiKey)) { $input = new Input(Database::PERMISSION_READ, $project->getPermissionsByType(Database::PERMISSION_READ)); $initialStatus = $authorization->getStatus(); $authorization->enable();