mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#840 관리자의 경우 에디터 권한 설정에 관계없이 항상 작동하도록 수정
This commit is contained in:
parent
8150d8f667
commit
1a0661c1d6
1 changed files with 8 additions and 4 deletions
|
|
@ -379,7 +379,8 @@ class editorModel extends editor
|
|||
$option->colorset = $config->sel_editor_colorset;
|
||||
// Permission check for file upload
|
||||
$option->allow_fileupload = false;
|
||||
if(count($config->upload_file_grant))
|
||||
if($logged_info->is_admin=='Y') $option->allow_fileupload = true;
|
||||
elseif(count($config->upload_file_grant))
|
||||
{
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
{
|
||||
|
|
@ -393,7 +394,8 @@ class editorModel extends editor
|
|||
else $option->allow_fileupload = true;
|
||||
// Permission check for using default components
|
||||
$option->enable_default_component = false;
|
||||
if(count($config->enable_default_component_grant))
|
||||
if($logged_info->is_admin=='Y') $option->enable_default_component = true;
|
||||
elseif(count($config->enable_default_component_grant))
|
||||
{
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
{
|
||||
|
|
@ -407,7 +409,8 @@ class editorModel extends editor
|
|||
else $option->enable_default_component = true;
|
||||
// Permisshion check for using extended components
|
||||
$option->enable_component = false;
|
||||
if(count($config->enable_component_grant))
|
||||
if($logged_info->is_admin=='Y') $option->enable_component = true;
|
||||
elseif(count($config->enable_component_grant))
|
||||
{
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
{
|
||||
|
|
@ -421,7 +424,8 @@ class editorModel extends editor
|
|||
else $option->enable_component = true;
|
||||
// HTML editing privileges
|
||||
$enable_html = false;
|
||||
if(count($config->enable_html_grant))
|
||||
if($logged_info->is_admin=='Y') $option->enable_html = true;
|
||||
elseif(count($config->enable_html_grant))
|
||||
{
|
||||
foreach($group_list as $group_srl => $group_info)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue