|
@@ 418-430 (lines=13) @@
|
| 415 |
|
$option->colorset = $config->sel_editor_colorset; |
| 416 |
|
// Permission check for file upload |
| 417 |
|
$option->allow_fileupload = false; |
| 418 |
|
if($logged_info->is_admin=='Y') $option->allow_fileupload = true; |
| 419 |
|
elseif(count($config->upload_file_grant)) |
| 420 |
|
{ |
| 421 |
|
foreach($group_list as $group_srl => $group_info) |
| 422 |
|
{ |
| 423 |
|
if(in_array($group_srl, $config->upload_file_grant)) |
| 424 |
|
{ |
| 425 |
|
$option->allow_fileupload = true; |
| 426 |
|
break; |
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
} |
| 430 |
|
else $option->allow_fileupload = true; |
| 431 |
|
// Permission check for using default components |
| 432 |
|
$option->enable_default_component = false; |
| 433 |
|
if($logged_info->is_admin=='Y') $option->enable_default_component = true; |
|
@@ 433-445 (lines=13) @@
|
| 430 |
|
else $option->allow_fileupload = true; |
| 431 |
|
// Permission check for using default components |
| 432 |
|
$option->enable_default_component = false; |
| 433 |
|
if($logged_info->is_admin=='Y') $option->enable_default_component = true; |
| 434 |
|
elseif(count($config->enable_default_component_grant)) |
| 435 |
|
{ |
| 436 |
|
foreach($group_list as $group_srl => $group_info) |
| 437 |
|
{ |
| 438 |
|
if(in_array($group_srl, $config->enable_default_component_grant)) |
| 439 |
|
{ |
| 440 |
|
$option->enable_default_component = true; |
| 441 |
|
break; |
| 442 |
|
} |
| 443 |
|
} |
| 444 |
|
} |
| 445 |
|
else $option->enable_default_component = true; |
| 446 |
|
// Permisshion check for using extended components |
| 447 |
|
$option->enable_component = false; |
| 448 |
|
if($logged_info->is_admin=='Y') $option->enable_component = true; |
|
@@ 448-460 (lines=13) @@
|
| 445 |
|
else $option->enable_default_component = true; |
| 446 |
|
// Permisshion check for using extended components |
| 447 |
|
$option->enable_component = false; |
| 448 |
|
if($logged_info->is_admin=='Y') $option->enable_component = true; |
| 449 |
|
elseif(count($config->enable_component_grant)) |
| 450 |
|
{ |
| 451 |
|
foreach($group_list as $group_srl => $group_info) |
| 452 |
|
{ |
| 453 |
|
if(in_array($group_srl, $config->enable_component_grant)) |
| 454 |
|
{ |
| 455 |
|
$option->enable_component = true; |
| 456 |
|
break; |
| 457 |
|
} |
| 458 |
|
} |
| 459 |
|
} |
| 460 |
|
else $option->enable_component = true; |
| 461 |
|
// HTML editing privileges |
| 462 |
|
$enable_html = false; |
| 463 |
|
if($logged_info->is_admin=='Y') $enable_html = true; |
|
@@ 463-475 (lines=13) @@
|
| 460 |
|
else $option->enable_component = true; |
| 461 |
|
// HTML editing privileges |
| 462 |
|
$enable_html = false; |
| 463 |
|
if($logged_info->is_admin=='Y') $enable_html = true; |
| 464 |
|
elseif(count($config->enable_html_grant)) |
| 465 |
|
{ |
| 466 |
|
foreach($group_list as $group_srl => $group_info) |
| 467 |
|
{ |
| 468 |
|
if(in_array($group_srl, $config->enable_html_grant)) |
| 469 |
|
{ |
| 470 |
|
$enable_html = true; |
| 471 |
|
break; |
| 472 |
|
} |
| 473 |
|
} |
| 474 |
|
} |
| 475 |
|
else $enable_html = true; |
| 476 |
|
|
| 477 |
|
if($enable_html) $option->disable_html = false; |
| 478 |
|
else $option->disable_html = true; |