From c8bf5f43283afcbc0364ddddb3ab296406f9286f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 25 Apr 2024 01:23:01 +0000 Subject: [PATCH] simplify check --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {