diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 831b05b605..c704aadf85 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -702,7 +702,7 @@ App::shutdown() if ($project->getId() !== 'console') { - if (!(Auth::isPrivilegedUser(Authorization::getRoles()) && !$user->isEmpty())) { + if (!Auth::isPrivilegedUser(Authorization::getRoles())) { $fileSize = 0; $file = $request->getFiles('file'); if (!empty($file)) {