mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
일반 게시판의 관리자가 최고관리자의 게시물을 삭제 및 수정을 할 수있는 권한을 제어.
This commit is contained in:
parent
1a2306137a
commit
52ad75cc3c
8 changed files with 115 additions and 2 deletions
|
|
@ -67,6 +67,13 @@ class boardController extends board
|
|||
$is_update = true;
|
||||
}
|
||||
|
||||
$oMemberModel = getModel('member');
|
||||
$member_info = $oMemberModel->getMemberInfoByMemberSrl($oDocument->get('member_srl'));
|
||||
if($member_info->is_admin == 'Y' && $logged_info->is_admin != 'Y')
|
||||
{
|
||||
return new Object(-1, 'msg_admin_document_no_modify');
|
||||
}
|
||||
|
||||
// if use anonymous is true
|
||||
if($this->module_info->use_anonymous == 'Y')
|
||||
{
|
||||
|
|
@ -289,6 +296,14 @@ class boardController extends board
|
|||
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
|
||||
}
|
||||
|
||||
$oMemberModel = getModel('member');
|
||||
$member_info = $oMemberModel->getMemberInfoByMemberSrl($comment->member_srl);
|
||||
|
||||
if($member_info->is_admin == 'Y' && $logged_info->is_admin == 'N')
|
||||
{
|
||||
return new Object(-1, 'msg_admin_comment_no_modify');
|
||||
}
|
||||
|
||||
// if comment_srl is not existed, then insert the comment
|
||||
if($comment->comment_srl != $obj->comment_srl)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue