mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#179 열람 권한이 없더라도 작성 권한이 있으면 작성이 되도록 하였으며 자신이 쓴 글에 대해서는 열람할 수 있게 하여 권한에 대한 정리를 하여 직관적인 사용이 가능하도록 하였습니다.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2669 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
126c36edd0
commit
a185b1fda5
7 changed files with 205 additions and 230 deletions
|
|
@ -89,7 +89,7 @@
|
|||
} else {
|
||||
|
||||
// 글 보기 권한을 체크해서 권한이 없으면 오류 메세지 출력하도록 처리
|
||||
if(!$this->grant->view) {
|
||||
if(!$this->grant->view && !$oDocument->isGranted()) {
|
||||
|
||||
$oDocument = null;
|
||||
$oDocument = $oDocumentModel->getDocument(0, $this->grant->manager);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -61,11 +61,7 @@
|
|||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies & Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
|
||||
|
|
@ -106,11 +102,8 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
<!--@if($grant->view)-->
|
||||
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText(8,'')}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies">(<strong>{$document->getCommentCount()}</strong>)</span>
|
||||
|
|
@ -137,9 +130,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
|
||||
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="./images/common/icon_gofirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
|
|
@ -150,11 +142,11 @@
|
|||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="./images/common/icon_golast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<a href="{getUrl('','mid',$mid,'page',$page,'document_srl','')}"><img src="./images/common/btn_list.gif" alt="{$lang->cmd_list}" /></a>
|
||||
<!--@if($grant->write_document)-->
|
||||
<a href="{getUrl('act','dispBoardWrite','document_srl','')}"><img src="./images/common/btn_write.gif" alt="{$lang->cmd_write}" /></a>
|
||||
|
|
@ -162,11 +154,12 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;"><img src="./images/common/btn_manage.gif" alt="{$lang->cmd_manage_document}" /></a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<!-- 검색 -->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="category" value="{$category}" />
|
||||
|
||||
|
|
@ -182,7 +175,7 @@
|
|||
<li><a href="{getUrl('','mid',$mid)}"><img src="./images/common/btn_cancel.gif" alt="{$lang->cmd_cancel}" /></a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
</form>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -18,6 +18,13 @@
|
|||
<!--@end-->
|
||||
|
||||
<table cellspacing="0" summary="board list" class="boardList">
|
||||
<!--@if($module_info->display_number!='N')--><col width="80" /><!--@end-->
|
||||
<col />
|
||||
<!--@if($module_info->display_author!='N')--><col width="120" /><!--@end-->
|
||||
<!--@if($module_info->display_readed_count!='N')--><col width="70" /><!--@end-->
|
||||
<!--@if($module_info->display_voted_count!='N')--><col width="70" /><!--@end-->
|
||||
<!--@if($module_info->display_regdate != 'N')--><col width="90" /><!--@end-->
|
||||
<!--@if($module_info->display_last_update == 'Y')--><col width="90" /><!--@end-->
|
||||
<thead>
|
||||
<tr>
|
||||
<!--@if($module_info->display_number!='N')-->
|
||||
|
|
@ -79,11 +86,7 @@
|
|||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies & Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
|
||||
|
|
@ -105,9 +108,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
|
||||
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="./images/common/icon_gofirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
|
|
@ -118,11 +120,11 @@
|
|||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="./images/common/icon_golast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<a href="{getUrl('','mid',$mid,'page',$page,'document_srl','')}"><img src="./images/common/btn_list.gif" alt="{$lang->cmd_list}" /></a>
|
||||
<!--@if($grant->write_document)-->
|
||||
<a href="{getUrl('act','dispBoardWrite','document_srl','')}"><img src="./images/common/btn_write.gif" alt="{$lang->cmd_write}" /></a>
|
||||
|
|
@ -130,11 +132,12 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;"><img src="./images/common/btn_manage.gif" alt="{$lang->cmd_manage_document}" /></a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<!-- 검색 -->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="category" value="{$category}" />
|
||||
|
||||
|
|
@ -150,7 +153,7 @@
|
|||
<li><a href="{getUrl('','mid',$mid)}"><img src="./images/common/btn_cancel.gif" alt="{$lang->cmd_cancel}" /></a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
</form>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -61,11 +61,7 @@
|
|||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies & Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
|
||||
|
|
@ -104,11 +100,7 @@
|
|||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies & Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
|
||||
|
|
@ -134,9 +126,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pageNavigation">
|
||||
|
||||
<a href="{getUrl('page','','document_srl','')}" class="goToFirst"><img src="./images/common/icon_gofirst.gif" alt="{$lang->first_page}" width="7" height="5" /></a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
|
|
@ -147,11 +138,11 @@
|
|||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}" class="goToLast"><img src="./images/common/icon_golast.gif" alt="{$lang->last_page}" width="7" height="5" /></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="buttonBox">
|
||||
<a href="{getUrl('','mid',$mid,'page',$page,'document_srl','')}"><img src="./images/common/btn_list.gif" alt="{$lang->cmd_list}" /></a>
|
||||
<!--@if($grant->write_document)-->
|
||||
<a href="{getUrl('act','dispBoardWrite','document_srl','')}"><img src="./images/common/btn_write.gif" alt="{$lang->cmd_write}" /></a>
|
||||
|
|
@ -159,11 +150,12 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<a href="{getUrl('act','dispBoardAdminManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;"><img src="./images/common/btn_manage.gif" alt="{$lang->cmd_manage_document}" /></a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<!-- 검색 -->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search" class="boardSearch">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="category" value="{$category}" />
|
||||
|
||||
|
|
@ -179,7 +171,7 @@
|
|||
<li><a href="{getUrl('','mid',$mid)}"><img src="./images/common/btn_cancel.gif" alt="{$lang->cmd_cancel}" /></a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
</form>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -60,11 +60,8 @@
|
|||
<!--@if($grant->is_admin)-->
|
||||
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="checked"<!--@end--> />
|
||||
<!--@end-->
|
||||
<!--@if($grant->view)-->
|
||||
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies"><img src="./images/common/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
|
||||
|
|
@ -138,7 +135,6 @@
|
|||
</table>
|
||||
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<div class="clear">
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="gap1 fr">
|
||||
|
|
@ -172,6 +168,7 @@
|
|||
|
||||
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<div class="boardSearch">
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
|
|
@ -190,7 +187,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -94,11 +94,7 @@
|
|||
<a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies"><img src="./images/common/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
|
||||
|
|
@ -120,7 +116,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<div class="clear">
|
||||
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
|
|
@ -155,6 +150,7 @@
|
|||
|
||||
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<div class="boardSearch">
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
|
|
@ -171,7 +167,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 선택된 게시물이 있고 권한이 있으면 내용 출력 -->
|
||||
<!--@if($oDocument->isExists() && $grant->view)-->
|
||||
<!--@if($oDocument->isExists())-->
|
||||
<!--#include("./view_document.html")-->
|
||||
<!--@end-->
|
||||
|
||||
|
|
@ -77,11 +77,8 @@
|
|||
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
|
||||
<strong class="category">{$category_list[$document->get('category_srl')]->title}</strong>
|
||||
<!--@end-->
|
||||
<!--@if($grant->view)-->
|
||||
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies"><img src="./images/common/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
|
||||
|
|
@ -117,11 +114,8 @@
|
|||
<!--@if($module_info->use_category == "Y" && $document->get('category_srl'))-->
|
||||
<strong>{$category_list[$document->get('category_srl')]->title}</strong>
|
||||
<!--@end-->
|
||||
<!--@if($grant->view)-->
|
||||
|
||||
<a href="{getUrl('document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
|
||||
<!--@else-->
|
||||
{$document->getTitleText($module_info->subject_cut_size)}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($document->getCommentCount())-->
|
||||
<span class="replyAndTrackback" title="Replies"><img src="./images/common/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
|
||||
|
|
@ -151,7 +145,6 @@
|
|||
</table>
|
||||
|
||||
|
||||
<!--@if($grant->view)-->
|
||||
<div class="clear">
|
||||
<!-- 글쓰기, 목록 버튼 -->
|
||||
<div class="gap1 fr">
|
||||
|
|
@ -185,6 +178,7 @@
|
|||
|
||||
|
||||
<!-- 검색 -->
|
||||
<!--@if($grant->view)-->
|
||||
<div class="boardSearch">
|
||||
<form action="{getUrl()}" method="get" onsubmit="return procFilter(this, search)" id="fo_search">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
|
|
@ -203,7 +197,7 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("footer.html")-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue