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()]); $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 = getenv("category.role.{$action}") ?: 'iswrite'; $category_field = 'iswrite';
break; break;
case 'reply': case 'reply':
$category_field = getenv("category.role.{$action}") ?: 'isreply'; $category_field = 'isreply';
break; break;
case 'view': case 'view':
$category_field = getenv("category.role.{$action}") ?: 'isread'; $category_field = 'isread';
break; break;
case 'upload': case 'upload':
$category_field = getenv("category.role.{$action}") ?: 'isupload'; $category_field = 'isupload';
break; break;
case 'download': case 'download':
$category_field = getenv("category.role.{$action}") ?: 'isdownload'; $category_field = 'isdownload';
break; break;
default: default:
$category_field = getenv("category.role.{$action}") ?: 'isdaccess'; $category_field = 'isdaccess';
break; break;
} }
//사용자가 Category에서 해당 게시판의 해당권한이 있는지 확인 //사용자가 Category에서 해당 게시판의 해당권한이 있는지 확인