Add option to apply maximum image size to administrator

This commit is contained in:
Kijin Sung 2019-08-23 14:27:15 +09:00
parent c60d475aaf
commit 9d7f220417
7 changed files with 21 additions and 3 deletions

View file

@ -1086,7 +1086,7 @@ class fileController extends file
}
// Check image size
if($config->max_image_size_action && ($config->max_image_width || $config->max_image_height) && !$this->user->isAdmin())
if($config->max_image_size_action && ($config->max_image_width || $config->max_image_height) && (!$this->user->isAdmin() || $config->max_image_size_admin === 'Y'))
{
$exceeded = false;
if ($config->max_image_width > 0 && $image_width > $config->max_image_width)