.
This commit is contained in:
parent
cf9837a776
commit
cf6d994de4
1 changed files with 2 additions and 2 deletions
|
@ -228,8 +228,8 @@ class PrivateImage extends Extension
|
|||
|
||||
public function onImageAddition(ImageAdditionEvent $event)
|
||||
{
|
||||
global $user_config;
|
||||
if ($user_config->get_bool(PrivateImageConfig::USER_SET_DEFAULT)) {
|
||||
global $user, $user_config;
|
||||
if ($user_config->get_bool(PrivateImageConfig::USER_SET_DEFAULT) && $user->can(Permissions::SET_PRIVATE_IMAGE)) {
|
||||
self::privatize_image($event->image->id);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue