diff --git a/lib/Service/AppAPIService.php b/lib/Service/AppAPIService.php index fc2b9b85..9993dc1d 100644 --- a/lib/Service/AppAPIService.php +++ b/lib/Service/AppAPIService.php @@ -346,7 +346,6 @@ private function finalizeRequestToNC(ExApp $exApp, string $userId, IRequest $req $this->userSession->setUser(null); } $this->session->set('app_api', true); - $this->session->set('app_api_system', true); // TODO: Remove after drop support NC29 if ($delay) { $this->throttler->resetDelay($request->getRemoteAddress(), Application::APP_ID, [ @@ -448,7 +447,7 @@ public function runOccCommandInternal(array $args): bool { } $this->logger->info(sprintf('Calling occ(directory=%s): %s', $occDirectory ?? 'null', $args)); $process = proc_open('php console.php ' . $args, $descriptors, $pipes, $occDirectory); - + if (!is_resource($process)) { $this->logger->error(sprintf('Error calling occ(directory=%s): %s', $occDirectory ?? 'null', $args)); return false; @@ -469,7 +468,7 @@ public function runOccCommandInternal(array $args): bool { } $this->logger->info(sprintf('OCC command executed successfully. stdout: %s, stderr: %s', $stdout, $stderr)); - + return true; }