mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
익명 관련 코드 정리
This commit is contained in:
parent
4ef83941fa
commit
5511df2352
2 changed files with 10 additions and 13 deletions
|
|
@ -161,7 +161,7 @@ class boardController extends board
|
||||||
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
$obj->update_order = $obj->list_order = (getNextSequence() * -1);
|
||||||
}
|
}
|
||||||
$obj->reason_update = escape($obj->reason_update);
|
$obj->reason_update = escape($obj->reason_update);
|
||||||
$output = $oDocumentController->updateDocument($oDocument, $obj, true);
|
$output = $oDocumentController->updateDocument($oDocument, $obj, $bAnonymous);
|
||||||
$msg_code = 'success_updated';
|
$msg_code = 'success_updated';
|
||||||
|
|
||||||
// insert a new document otherwise
|
// insert a new document otherwise
|
||||||
|
|
|
||||||
|
|
@ -550,7 +550,6 @@ class documentController extends document
|
||||||
|
|
||||||
if(!$source_obj->document_srl || !$obj->document_srl) return new Object(-1,'msg_invalied_request');
|
if(!$source_obj->document_srl || !$obj->document_srl) return new Object(-1,'msg_invalied_request');
|
||||||
|
|
||||||
|
|
||||||
if(!$obj->status && $obj->is_secret == 'Y') $obj->status = 'SECRET';
|
if(!$obj->status && $obj->is_secret == 'Y') $obj->status = 'SECRET';
|
||||||
if(!$obj->status) $obj->status = 'PUBLIC';
|
if(!$obj->status) $obj->status = 'PUBLIC';
|
||||||
|
|
||||||
|
|
@ -562,12 +561,10 @@ class documentController extends document
|
||||||
$oDB = &DB::getInstance();
|
$oDB = &DB::getInstance();
|
||||||
$oDB->begin();
|
$oDB->begin();
|
||||||
|
|
||||||
$oModuleModel = getModel('module');
|
|
||||||
if(!$obj->module_srl) $obj->module_srl = $source_obj->get('module_srl');
|
if(!$obj->module_srl) $obj->module_srl = $source_obj->get('module_srl');
|
||||||
$module_srl = $obj->module_srl;
|
|
||||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
|
||||||
|
|
||||||
$document_config = $oModuleModel->getModulePartConfig('document', $module_srl);
|
$oModuleModel = getModel('module');
|
||||||
|
$document_config = $oModuleModel->getModulePartConfig('document', $obj->module_srl);
|
||||||
if(!$document_config)
|
if(!$document_config)
|
||||||
{
|
{
|
||||||
$document_config = new stdClass();
|
$document_config = new stdClass();
|
||||||
|
|
@ -580,7 +577,7 @@ class documentController extends document
|
||||||
$args = new stdClass;
|
$args = new stdClass;
|
||||||
$args->history_srl = getNextSequence();
|
$args->history_srl = getNextSequence();
|
||||||
$args->document_srl = $obj->document_srl;
|
$args->document_srl = $obj->document_srl;
|
||||||
$args->module_srl = $module_srl;
|
$args->module_srl = $obj->module_srl;
|
||||||
if($document_config->use_history == 'Y') $args->content = $source_obj->get('content');
|
if($document_config->use_history == 'Y') $args->content = $source_obj->get('content');
|
||||||
$args->nick_name = $source_obj->get('nick_name');
|
$args->nick_name = $source_obj->get('nick_name');
|
||||||
$args->member_srl = $source_obj->get('member_srl');
|
$args->member_srl = $source_obj->get('member_srl');
|
||||||
|
|
@ -609,7 +606,7 @@ class documentController extends document
|
||||||
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
|
||||||
|
|
||||||
// can modify regdate only manager
|
// can modify regdate only manager
|
||||||
$grant = Context::get('grant');
|
$grant = Context::get('grant');
|
||||||
if(!$grant->manager)
|
if(!$grant->manager)
|
||||||
{
|
{
|
||||||
unset($obj->regdate);
|
unset($obj->regdate);
|
||||||
|
|
@ -640,7 +637,7 @@ class documentController extends document
|
||||||
|
|
||||||
// If an author is identical to the modifier or history is used, use the logged-in user's information.
|
// If an author is identical to the modifier or history is used, use the logged-in user's information.
|
||||||
$logged_info = Context::get('logged_info');
|
$logged_info = Context::get('logged_info');
|
||||||
if(Context::get('is_logged') && !$manual_updated && $module_info->use_anonymous != 'Y')
|
if(Context::get('is_logged') && !$manual_updated)
|
||||||
{
|
{
|
||||||
if($source_obj->get('member_srl')==$logged_info->member_srl)
|
if($source_obj->get('member_srl')==$logged_info->member_srl)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue