mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 22:42:14 +09:00
fix #1868 임시저장 글을 불러와 등록 시 익명 설정임에도 작성자의 정보가 입력/노출되는 문제 고침
Conflicts: modules/board/board.controller.php modules/document/document.controller.php
This commit is contained in:
parent
8969514697
commit
c7dca3008a
2 changed files with 9 additions and 2 deletions
|
|
@ -607,8 +607,9 @@ 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') && $module_info->use_anonymous != 'Y')
|
||||
if(Context::get('is_logged') && !$manual_updated && $module_info->use_anonymous != 'Y')
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($source_obj->get('member_srl')==$logged_info->member_srl)
|
||||
|
|
@ -620,6 +621,7 @@ class documentController extends document
|
|||
$obj->homepage = $logged_info->homepage;
|
||||
}
|
||||
}
|
||||
|
||||
// For the document written by logged-in user however no nick_name exists
|
||||
if($source_obj->get('member_srl')&& !$obj->nick_name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue