Split project controller into multiple classes
This commit is contained in:
@@ -81,11 +81,12 @@ class AuthenticationProvider implements ServiceProviderInterface
|
||||
$acl->add('Export', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('TaskFile', array('screenshot', 'create', 'save', 'remove', 'confirm'), Role::PROJECT_MEMBER);
|
||||
$acl->add('Gantt', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('Project', array('share', 'integrations', 'notifications', 'duplicate', 'disable', 'enable', 'remove'), Role::PROJECT_MANAGER);
|
||||
$acl->add('ProjectViewController', array('share', 'updateSharing', 'integrations', 'updateIntegrations', 'notifications', 'updateNotifications', 'duplicate', 'doDuplication'), Role::PROJECT_MANAGER);
|
||||
$acl->add('ProjectPermission', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('ProjectEdit', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('ProjectFile', '*', Role::PROJECT_MEMBER);
|
||||
$acl->add('Projectuser', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('ProjectStatusController', '*', Role::PROJECT_MANAGER);
|
||||
$acl->add('SubtaskController', '*', Role::PROJECT_MEMBER);
|
||||
$acl->add('SubtaskRestrictionController', '*', Role::PROJECT_MEMBER);
|
||||
$acl->add('SubtaskStatusController', '*', Role::PROJECT_MEMBER);
|
||||
|
||||
@@ -49,17 +49,14 @@ class RouteProvider implements ServiceProviderInterface
|
||||
$container['route']->addRoute('project/create/private', 'ProjectCreation', 'createPrivate');
|
||||
|
||||
// Project routes
|
||||
$container['route']->addRoute('projects', 'project', 'index');
|
||||
$container['route']->addRoute('project/:project_id', 'project', 'show');
|
||||
$container['route']->addRoute('p/:project_id', 'project', 'show');
|
||||
$container['route']->addRoute('projects', 'ProjectListController', 'show');
|
||||
$container['route']->addRoute('project/:project_id', 'ProjectViewController', 'show');
|
||||
$container['route']->addRoute('p/:project_id', 'ProjectViewController', 'show');
|
||||
$container['route']->addRoute('project/:project_id/customer-filters', 'customfilter', 'index');
|
||||
$container['route']->addRoute('project/:project_id/share', 'project', 'share');
|
||||
$container['route']->addRoute('project/:project_id/notifications', 'project', 'notifications');
|
||||
$container['route']->addRoute('project/:project_id/integrations', 'project', 'integrations');
|
||||
$container['route']->addRoute('project/:project_id/duplicate', 'project', 'duplicate');
|
||||
$container['route']->addRoute('project/:project_id/remove', 'project', 'remove');
|
||||
$container['route']->addRoute('project/:project_id/disable', 'project', 'disable');
|
||||
$container['route']->addRoute('project/:project_id/enable', 'project', 'enable');
|
||||
$container['route']->addRoute('project/:project_id/share', 'ProjectViewController', 'share');
|
||||
$container['route']->addRoute('project/:project_id/notifications', 'ProjectViewController', 'notifications');
|
||||
$container['route']->addRoute('project/:project_id/integrations', 'ProjectViewController', 'integrations');
|
||||
$container['route']->addRoute('project/:project_id/duplicate', 'ProjectViewController', 'duplicate');
|
||||
$container['route']->addRoute('project/:project_id/permissions', 'ProjectPermission', 'index');
|
||||
$container['route']->addRoute('project/:project_id/import', 'taskImport', 'step1');
|
||||
$container['route']->addRoute('project/:project_id/activity', 'activity', 'project');
|
||||
|
||||
Reference in New Issue
Block a user