format
This commit is contained in:
parent
6cbc12e427
commit
76e28b9a14
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class Approval extends Extension
|
||||||
Image::$bool_props[] = "approved";
|
Image::$bool_props[] = "approved";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onImageAddition(ImageAdditionEvent $event) {
|
public function onImageAddition(ImageAdditionEvent $event)
|
||||||
|
{
|
||||||
global $user, $config;
|
global $user, $config;
|
||||||
|
|
||||||
if ($config->get_bool(ApprovalConfig::IMAGES) && $config->get_bool(ApprovalConfig::BYPASS) && $user->can(Permissions::BYPASS_IMAGE_APPROVAL)) {
|
if ($config->get_bool(ApprovalConfig::IMAGES) && $config->get_bool(ApprovalConfig::BYPASS) && $user->can(Permissions::BYPASS_IMAGE_APPROVAL)) {
|
||||||
|
|
Reference in a new issue