This commit is contained in:
Luana 2023-06-14 05:15:14 -03:00
parent 6cbc12e427
commit 76e28b9a14

View file

@ -28,7 +28,8 @@ class Approval extends Extension
Image::$bool_props[] = "approved";
}
public function onImageAddition(ImageAdditionEvent $event) {
public function onImageAddition(ImageAdditionEvent $event)
{
global $user, $config;
if ($config->get_bool(ApprovalConfig::IMAGES) && $config->get_bool(ApprovalConfig::BYPASS) && $user->can(Permissions::BYPASS_IMAGE_APPROVAL)) {