mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
기본 애드온 활성화 대상을 변경(자동링크, 이미지자동 리사이즈 활성화), 게시물의 소속 모듈이 다르게 접근시 접근 금지 시킴
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4208 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2ae3b0e54d
commit
73b676ad32
3 changed files with 7 additions and 2 deletions
|
|
@ -30,8 +30,10 @@
|
|||
// 몇가지 애드온을 기본 활성화 상태로 변경
|
||||
$oAddonController->doActivate('member_extra_info');
|
||||
$oAddonController->doActivate('counter');
|
||||
$oAddonController->doActivate('blogapi');
|
||||
//$oAddonController->doActivate('blogapi');
|
||||
$oAddonController->doActivate('referer');
|
||||
$oAddonController->doActivate('autolink');
|
||||
$oAddonController->doActivate('resize_image');
|
||||
$oAddonController->procAddonAdminToggleActivate();
|
||||
return new Object();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@
|
|||
// 일단 입력된 값들을 모두 받아서 db 입력항목과 그외 것으로 분리
|
||||
if(!$args) {
|
||||
$args = Context::gets('module_srl','module_category_srl','board_name','layout_srl','skin','browser_title','description','is_default','header_text','footer_text','admin_id');
|
||||
$extra_var = delObjectVars(Context::getRequestVars(), $args);
|
||||
}
|
||||
|
||||
$args->module = 'board';
|
||||
|
|
@ -178,7 +179,6 @@
|
|||
if($args->is_default!='Y') $args->is_default = 'N';
|
||||
|
||||
// 기본 값외의 것들을 정리
|
||||
$extra_var = delObjectVars(Context::getRequestVars(), $args);
|
||||
if($extra_var->use_category!='Y') $extra_var->use_category = 'N';
|
||||
if($extra_var->except_notice!='Y') $extra_var->except_notice = 'N';
|
||||
if($extra_var->consultation!='Y') $extra_var->consultation = 'N';
|
||||
|
|
|
|||
|
|
@ -125,6 +125,9 @@
|
|||
// 글이 존재하면 글 보기 권한에 대한 확인과 조회수증가/ 브라우저 타이틀의 설정을 함
|
||||
} else {
|
||||
|
||||
// 글과 요청된 모듈이 다르다면 오류 표시
|
||||
if($oDocument->get('module_srl')!=Context::get('module_srl') ) return $this->stop('msg_invalid_request');
|
||||
|
||||
// 관리 권한이 있다면 권한을 부여
|
||||
if($this->grant->manager) $oDocument->setGrant();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue