shoppingmallv2 init...
This commit is contained in:
parent
db0d7e6a09
commit
f7e5164a55
@ -166,15 +166,6 @@ define('SESSION_NAMES', [
|
|||||||
'CART' => 'cart'
|
'CART' => 'cart'
|
||||||
]);
|
]);
|
||||||
define('AUTH_FIELDS', ['ID' => 'id', 'TITLE' => 'title', 'ROLE' => 'role']);
|
define('AUTH_FIELDS', ['ID' => 'id', 'TITLE' => 'title', 'ROLE' => 'role']);
|
||||||
//Category관련 Role Fields
|
|
||||||
define('CATEGORY_ROLE_FIELDS', [
|
|
||||||
'ACCESS' => 'isaccess',
|
|
||||||
'READ' => 'isread',
|
|
||||||
'WRITE' => 'iswrite',
|
|
||||||
'REPLY' => 'isreply',
|
|
||||||
'UPLOAD' => 'isupload',
|
|
||||||
'DONWLOAD' => 'isdownload',
|
|
||||||
]);
|
|
||||||
|
|
||||||
//인증 관련
|
//인증 관련
|
||||||
define('AUTH_ADAPTERS', [
|
define('AUTH_ADAPTERS', [
|
||||||
|
|||||||
@ -33,22 +33,22 @@ abstract class FrontController extends BaseController
|
|||||||
$this->_viewDatas['parent_category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_viewDatas['category']->getHierarchy_ParentUID()]);
|
$this->_viewDatas['parent_category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_viewDatas['category']->getHierarchy_ParentUID()]);
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'insert':
|
case 'insert':
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['WRITE'];
|
$category_field = getenv("category.role.{$action}") ?: 'iswrite';
|
||||||
break;
|
break;
|
||||||
case 'reply':
|
case 'reply':
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['REPLY'];
|
$category_field = getenv("category.role.{$action}") ?: 'isreply';
|
||||||
break;
|
break;
|
||||||
case 'view':
|
case 'view':
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['READ'];
|
$category_field = getenv("category.role.{$action}") ?: 'isread';
|
||||||
break;
|
break;
|
||||||
case 'upload':
|
case 'upload':
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['UPLOAD'];
|
$category_field = getenv("category.role.{$action}") ?: 'isupload';
|
||||||
break;
|
break;
|
||||||
case 'download':
|
case 'download':
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['DONWLOAD'];
|
$category_field = getenv("category.role.{$action}") ?: 'isdownload';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$category_field = CATEGORY_ROLE_FIELDS['ACCESS'];
|
$category_field = getenv("category.role.{$action}") ?: 'isdaccess';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//사용자가 Category에서 해당 게시판의 해당권한이 있는지 확인
|
//사용자가 Category에서 해당 게시판의 해당권한이 있는지 확인
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user