mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
#1838 관리자 계정의 익명 적용여부 설정 제공
This commit is contained in:
parent
22182c4c19
commit
75978c77fe
6 changed files with 18 additions and 5 deletions
|
|
@ -100,7 +100,7 @@ class boardController extends board
|
|||
$logged_info = Context::get('logged_info');
|
||||
|
||||
// Set anonymous information
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
if($this->module_info->use_anonymous == 'Y' && ($this->module_info->anonymous_except_admin != 'Y' || !$this->grant->manager))
|
||||
{
|
||||
if(!$obj->document_srl)
|
||||
{
|
||||
|
|
@ -140,7 +140,7 @@ class boardController extends board
|
|||
if($oDocument->get('status') == DocumentModel::getConfigStatus('temp'))
|
||||
{
|
||||
// if use anonymous, set the member_srl to a negative number
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
if($this->module_info->use_anonymous == 'Y' && ($this->module_info->anonymous_except_admin != 'Y' || !$this->grant->manager))
|
||||
{
|
||||
$obj->member_srl = abs($oDocument->get('member_srl')) * -1;
|
||||
$oDocument->add('member_srl', $obj->member_srl);
|
||||
|
|
@ -197,7 +197,7 @@ class boardController extends board
|
|||
else
|
||||
{
|
||||
// if use anonymous, set the member_srl to a negative number
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
if($this->module_info->use_anonymous == 'Y' && ($this->module_info->anonymous_except_admin != 'Y' || !$this->grant->manager))
|
||||
{
|
||||
$obj->member_srl = $logged_info->member_srl * -1;
|
||||
}
|
||||
|
|
@ -449,7 +449,7 @@ class boardController extends board
|
|||
}
|
||||
|
||||
// For anonymous use, remove writer's information and notifying information
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
if($this->module_info->use_anonymous == 'Y' && ($this->module_info->anonymous_except_admin != 'Y' || !$this->grant->manager))
|
||||
{
|
||||
$this->module_info->admin_mail = '';
|
||||
$obj->notify_message = 'N';
|
||||
|
|
@ -757,7 +757,7 @@ class boardController extends board
|
|||
|
||||
// get the module information
|
||||
$module_info = ModuleModel::getModuleInfoByMid($mid);
|
||||
if(empty($module_info->module) || $module_info->module !== 'board' || $module_info->use_anonymous === 'Y')
|
||||
if(empty($module_info->module) || $module_info->module !== 'board' || ($module_info->use_anonymous === 'Y' && ($this->module_info->anonymous_except_admin != 'Y' || !$this->grant->manager)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue