mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
에디터 미리보기 개선
This commit is contained in:
parent
9204353a15
commit
c72e2ad49f
3 changed files with 19 additions and 65 deletions
|
|
@ -408,19 +408,22 @@ class editorModel extends editor
|
|||
}
|
||||
|
||||
// Permission check for file upload
|
||||
if ($logged_info->is_admin === 'Y' || !count($option->upload_file_grant))
|
||||
if($module_srl)
|
||||
{
|
||||
$option->allow_fileupload = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$option->allow_fileupload = false;
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
if ($logged_info->is_admin === 'Y' || !count($option->upload_file_grant))
|
||||
{
|
||||
if(in_array($group_srl, $option->upload_file_grant))
|
||||
$option->allow_fileupload = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$option->allow_fileupload = false;
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
{
|
||||
$option->allow_fileupload = true;
|
||||
break;
|
||||
if(in_array($group_srl, $option->upload_file_grant))
|
||||
{
|
||||
$option->allow_fileupload = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue