Update Upload.php

This commit is contained in:
themohooks 2024-07-20 22:09:13 +03:00
parent a711b48889
commit 80855997ab

View file

@ -19,7 +19,7 @@ class Upload
{ {
$user = new \App\Models\User(Auth::userid()); $user = new \App\Models\User(Auth::userid());
if (NGALLERY['root']['photo']['upload']['premoderation'] === true) { if (NGALLERY['root']['photo']['upload']['premoderation'] === true) {
if ($user->content('premoderation') === "true") { if ($user->content('premoderation') === "true" || $user->i('admin') > 0) {
$moderated = 1; $moderated = 1;
} else { } else {
$moderated = 0; $moderated = 0;