mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
익명게시판에서 관리자 권한으로 글 수정시 관리자의 글이 되는 문제 개선
This commit is contained in:
parent
3a713c51c1
commit
97f30ba38c
1 changed files with 12 additions and 2 deletions
|
|
@ -60,12 +60,22 @@ class boardController extends board
|
|||
// check if the document is existed
|
||||
$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
|
||||
|
||||
// update the document if it is existed
|
||||
$is_update = false;
|
||||
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl)
|
||||
{
|
||||
$is_update = true;
|
||||
}
|
||||
|
||||
// if use anonymous is true
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
{
|
||||
$this->module_info->admin_mail = '';
|
||||
$obj->notify_message = 'N';
|
||||
$obj->member_srl = -1*$logged_info->member_srl;
|
||||
if($is_update===false)
|
||||
{
|
||||
$obj->member_srl = -1*$logged_info->member_srl;
|
||||
}
|
||||
$obj->email_address = $obj->homepage = $obj->user_id = '';
|
||||
$obj->user_name = $obj->nick_name = 'anonymous';
|
||||
$bAnonymous = true;
|
||||
|
|
@ -86,7 +96,7 @@ class boardController extends board
|
|||
}
|
||||
|
||||
// update the document if it is existed
|
||||
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl)
|
||||
if($is_update)
|
||||
{
|
||||
if(!$oDocument->isGranted())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue