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());
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;