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