mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Don't display password input form when trying to edit a member's post
This commit is contained in:
parent
ded0cd484d
commit
4849489d45
1 changed files with 32 additions and 4 deletions
|
|
@ -915,9 +915,16 @@ class BoardView extends Board
|
|||
|
||||
// if the document is not granted, then back to the password input form
|
||||
if($oDocument->isExists() && !$oDocument->isGranted())
|
||||
{
|
||||
if ($oDocument->getMemberSrl())
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->setTemplateFile('input_password_form');
|
||||
}
|
||||
}
|
||||
|
||||
if(!$oDocument->isExists())
|
||||
{
|
||||
|
|
@ -1031,9 +1038,16 @@ class BoardView extends Board
|
|||
|
||||
// if the document is not granted, then back to the password input form
|
||||
if(!$oDocument->isGranted())
|
||||
{
|
||||
if ($oDocument->getMemberSrl())
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->setTemplateFile('input_password_form');
|
||||
}
|
||||
}
|
||||
|
||||
if($this->module_info->protect_document_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
|
|
@ -1219,8 +1233,15 @@ class BoardView extends Board
|
|||
if(!$oComment->isGranted())
|
||||
{
|
||||
Context::set('document_srl', $oComment->get('document_srl'));
|
||||
if ($oComment->getMemberSrl())
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->setTemplateFile('input_password_form');
|
||||
}
|
||||
}
|
||||
|
||||
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
|
|
@ -1296,8 +1317,15 @@ class BoardView extends Board
|
|||
if(!$oComment->isGranted())
|
||||
{
|
||||
Context::set('document_srl', $oComment->get('document_srl'));
|
||||
if ($oComment->getMemberSrl())
|
||||
{
|
||||
return $this->dispBoardMessage('msg_not_permitted');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->setTemplateFile('input_password_form');
|
||||
}
|
||||
}
|
||||
|
||||
if($this->module_info->protect_comment_regdate > 0 && $this->grant->manager == false)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue