mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Add option to apply maximum image size to administrator
This commit is contained in:
parent
c60d475aaf
commit
9d7f220417
7 changed files with 21 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue