diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index fdaa98212c..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 ($mode !== APP_MODE_ADMIN) { + if (!Auth::isPrivilegedUser(Authorization::getRoles())) { $fileSize = 0; $file = $request->getFiles('file'); if (!empty($file)) {