shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-18 18:12:56 +09:00
parent c417caebbd
commit 1105d79622

View File

@ -33,22 +33,22 @@ abstract class FrontController extends BaseController
$this->_viewDatas['parent_category'] = $this->getCategoryModel()->getEntity([$this->getCategoryModel()->getPrimaryKey() => $this->_viewDatas['category']->getHierarchy_ParentUID()]);
switch ($action) {
case 'insert':
$category_field = getenv("category.role.{$action}") ?: 'iswrite';
$category_field = 'iswrite';
break;
case 'reply':
$category_field = getenv("category.role.{$action}") ?: 'isreply';
$category_field = 'isreply';
break;
case 'view':
$category_field = getenv("category.role.{$action}") ?: 'isread';
$category_field = 'isread';
break;
case 'upload':
$category_field = getenv("category.role.{$action}") ?: 'isupload';
$category_field = 'isupload';
break;
case 'download':
$category_field = getenv("category.role.{$action}") ?: 'isdownload';
$category_field = 'isdownload';
break;
default:
$category_field = getenv("category.role.{$action}") ?: 'isdaccess';
$category_field = 'isdaccess';
break;
}
//사용자가 Category에서 해당 게시판의 해당권한이 있는지 확인