mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#1195 보완. 글 보기 권한이 없을 때 글 목록에서 content, tags, extra_vars 감춤
This commit is contained in:
parent
460a4dbc93
commit
ae55711dc4
1 changed files with 8 additions and 0 deletions
|
|
@ -97,10 +97,18 @@ class boardAPI extends board {
|
|||
|
||||
|
||||
function arrangeContent($content) {
|
||||
$oBoardView = getView('board');
|
||||
$output = new stdClass;
|
||||
if($content){
|
||||
$output = $content->gets('document_srl','category_srl','member_srl','nick_name','user_id','user_name','title','content','tags','readed_count','voted_count','blamed_count','comment_count','regdate','last_update','extra_vars','status');
|
||||
|
||||
if(!$oBoardView->grant->view)
|
||||
{
|
||||
unset($output->content);
|
||||
unset($output->tags);
|
||||
unset($output->extra_vars);
|
||||
}
|
||||
|
||||
$t_width = Context::get('thumbnail_width');
|
||||
$t_height = Context::get('thumbnail_height');
|
||||
$t_type = Context::get('thumbnail_type');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue