From 80855997ab21c0c8f35e3799267c30c91a2e39ec Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:09:13 +0300 Subject: [PATCH] Update Upload.php --- app/Controllers/Api/Images/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Api/Images/Upload.php b/app/Controllers/Api/Images/Upload.php index e8bbd58..54866b6 100644 --- a/app/Controllers/Api/Images/Upload.php +++ b/app/Controllers/Api/Images/Upload.php @@ -19,7 +19,7 @@ class Upload { $user = new \App\Models\User(Auth::userid()); if (NGALLERY['root']['photo']['upload']['premoderation'] === true) { - if ($user->content('premoderation') === "true") { + if ($user->content('premoderation') === "true" || $user->i('admin') > 0) { $moderated = 1; } else { $moderated = 0;