Split Gantt controller

This commit is contained in:
Frederic Guillot
2016-05-28 14:29:07 -04:00
parent 8d12e2fe73
commit 9e218032c4
16 changed files with 217 additions and 191 deletions

View File

@@ -80,7 +80,8 @@ class AuthenticationProvider implements ServiceProviderInterface
$acl->add('CustomFilterController', '*', Role::PROJECT_MEMBER);
$acl->add('ExportController', '*', Role::PROJECT_MANAGER);
$acl->add('TaskFileController', array('screenshot', 'create', 'save', 'remove', 'confirm'), Role::PROJECT_MEMBER);
$acl->add('Gantt', '*', Role::PROJECT_MANAGER);
$acl->add('TaskGanttController', '*', Role::PROJECT_MANAGER);
$acl->add('TaskGanttCreationController', '*', Role::PROJECT_MANAGER);
$acl->add('ProjectViewController', array('share', 'updateSharing', 'integrations', 'updateIntegrations', 'notifications', 'updateNotifications', 'duplicate', 'doDuplication'), Role::PROJECT_MANAGER);
$acl->add('ProjectPermissionController', '*', Role::PROJECT_MANAGER);
$acl->add('ProjectEditController', '*', Role::PROJECT_MANAGER);
@@ -132,7 +133,7 @@ class AuthenticationProvider implements ServiceProviderInterface
$acl->add('ConfigController', '*', Role::APP_ADMIN);
$acl->add('PluginController', '*', Role::APP_ADMIN);
$acl->add('CurrencyController', '*', Role::APP_ADMIN);
$acl->add('Gantt', array('projects', 'saveProjectDate'), Role::APP_MANAGER);
$acl->add('ProjectGanttController', '*', Role::APP_MANAGER);
$acl->add('GroupListController', '*', Role::APP_ADMIN);
$acl->add('GroupCreationController', '*', Role::APP_ADMIN);
$acl->add('GroupModificationController', '*', Role::APP_ADMIN);

View File

@@ -128,8 +128,8 @@ class RouteProvider implements ServiceProviderInterface
$container['route']->addRoute('l/:project_id', 'TaskListController', 'show');
// Gantt routes
$container['route']->addRoute('gantt/:project_id', 'gantt', 'project');
$container['route']->addRoute('gantt/:project_id/sort/:sorting', 'gantt', 'project');
$container['route']->addRoute('gantt/:project_id', 'TaskGanttController', 'show');
$container['route']->addRoute('gantt/:project_id/sort/:sorting', 'TaskGanttController', 'show');
// Feed routes
$container['route']->addRoute('feed/project/:token', 'FeedController', 'project');