#179 열람 권한이 없더라도 작성 권한이 있으면 작성이 되도록 하였으며 자신이 쓴 글에 대해서는 열람할 수 있게 하여 권한에 대한 정리를 하여 직관적인 사용이 가능하도록 하였습니다.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2669 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-02 08:24:43 +00:00
parent 126c36edd0
commit a185b1fda5
7 changed files with 205 additions and 230 deletions

View file

@ -89,7 +89,7 @@
} else {
// 글 보기 권한을 체크해서 권한이 없으면 오류 메세지 출력하도록 처리
if(!$this->grant->view) {
if(!$this->grant->view && !$oDocument->isGranted()) {
$oDocument = null;
$oDocument = $oDocumentModel->getDocument(0, $this->grant->manager);

View file

@ -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 &amp; 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,7 +130,6 @@
</tbody>
</table>
<!--@if($grant->view)-->
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
@ -166,6 +158,7 @@
<div class="clear"></div>
<!-- 검색 -->
<!--@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}" />

View file

@ -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 &amp; Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
@ -105,7 +108,6 @@
</tbody>
</table>
<!--@if($grant->view)-->
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
@ -134,6 +136,7 @@
<div class="clear"></div>
<!-- 검색 -->
<!--@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}" />

View file

@ -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 &amp; 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 &amp; Trackbacks">[R<strong>{$document->getCommentCount()}</strong>]</span>
@ -134,7 +126,6 @@
</tbody>
</table>
<!--@if($grant->view)-->
<!-- 페이지 네비게이션 -->
<div class="pageNavigation">
@ -163,6 +154,7 @@
<div class="clear"></div>
<!-- 검색 -->
<!--@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}" />

View file

@ -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>
</div>
<!--@end-->
</div>
<!--#include("footer.html")-->

View file

@ -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>
</div>
<!--@end-->
</div>
<!--#include("footer.html")-->

View file

@ -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>
</div>
<!--@end-->
</div>
<!--#include("footer.html")-->