diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 5b8a9ec..50dd6c0 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -194,6 +194,9 @@ final class BackendController extends Controller $view->setTemplate('/Modules/Kanban/Theme/Backend/kanban-board-create'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005801001, $request, $response); + $permissionView = new \Modules\Admin\Theme\Backend\Components\AccountPermissionSelector\BaseView($this->app->l11nManager, $request, $response); + $view->data['permissionView'] = $permissionView; + return $view; } diff --git a/Models/PermissionCategory.php b/Models/PermissionCategory.php index 6336fa4..b46f18a 100755 --- a/Models/PermissionCategory.php +++ b/Models/PermissionCategory.php @@ -30,5 +30,19 @@ abstract class PermissionCategory extends Enum public const CARD = 2; - public const KANBAN = 3; + public const COMMENT = 3; + + public const KANBAN = 4; + + public const D_CREATE = [ + self::BOARD => [ + 'DEFAULT' => ['RUDP'], // limited by own permissions + 'MAX' => ['RUDP'] // limited by own permissions + ], + + self::CARD => [ + 'DEFAULT' => ['RU'], // limited by own permissions + 'MAX' => ['RUD'] // limited by own permissions + ], + ]; } diff --git a/Theme/Backend/kanban-board-create.tpl.php b/Theme/Backend/kanban-board-create.tpl.php index f3521f2..329fa51 100755 --- a/Theme/Backend/kanban-board-create.tpl.php +++ b/Theme/Backend/kanban-board-create.tpl.php @@ -40,3 +40,5 @@ echo $this->data['nav']->render(); + +data['permissionView']->render('board_permission'); ?> \ No newline at end of file