관리자 체크를 함수로 하는 오류 고침

This commit is contained in:
BJRambo 2019-12-24 22:54:46 +09:00
parent e3da3ba794
commit 9cfd4ca363

View file

@ -403,7 +403,7 @@ class fileModel extends file
function getUploadConfig()
{
$config = $this->getFileConfig(Context::get('module_srl') ?: Context::get('current_module_info')->module_srl);
if($this->user->isAdmin())
if($this->user->is_admin === 'Y')
{
$module_config = getModel('module')->getModuleConfig('file');
$config->allowed_filesize = max($config->allowed_filesize, $module_config->allowed_filesize);