mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
글 작성 또는 임시 문서 수정 때만 익명 정보 생성
Fix https://github.com/rhymix/rhymix/issues/1990
This commit is contained in:
parent
24f49d441e
commit
c3dcc29c77
1 changed files with 4 additions and 3 deletions
|
|
@ -99,8 +99,10 @@ class boardController extends board
|
|||
$manual = false;
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
// Set anonymous information
|
||||
if($this->module_info->use_anonymous == 'Y' && (!$this->grant->manager || ($this->module_info->anonymous_except_admin ?? 'N') !== 'Y'))
|
||||
$oDocument = DocumentModel::getDocument($obj->document_srl);
|
||||
|
||||
// Set anonymous information when insert mode or status is temp
|
||||
if($this->module_info->use_anonymous == 'Y' && (!$this->grant->manager || ($this->module_info->anonymous_except_admin ?? 'N') !== 'Y') && (!$oDocument->isExists() || $oDocument->get('status') == DocumentModel::getConfigStatus('temp')))
|
||||
{
|
||||
if(!$obj->document_srl)
|
||||
{
|
||||
|
|
@ -118,7 +120,6 @@ class boardController extends board
|
|||
}
|
||||
|
||||
// Update if the document already exists.
|
||||
$oDocument = DocumentModel::getDocument($obj->document_srl);
|
||||
if($oDocument->isExists())
|
||||
{
|
||||
if(!$oDocument->isGranted())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue