mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 08:30:59 +03:00
Update Upload.php
This commit is contained in:
parent
a711b48889
commit
80855997ab
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue