mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge pull request #322 from bjrambo/pr/ano-update-document
임시저장시 익명 설정이 반영되지 않던 문제점을 고칩니다.
This commit is contained in:
commit
929a694ee1
1 changed files with 3 additions and 1 deletions
|
|
@ -517,6 +517,8 @@ class documentController extends document
|
|||
$oModuleModel = getModel('module');
|
||||
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);
|
||||
if(!$document_config)
|
||||
{
|
||||
|
|
@ -588,7 +590,7 @@ class documentController extends document
|
|||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
// If an author is identical to the modifier or history is used, use the logged-in user's information.
|
||||
if(Context::get('is_logged'))
|
||||
if(Context::get('is_logged') && $module_info->use_anonymous != 'Y')
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($source_obj->get('member_srl')==$logged_info->member_srl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue