diff options
Diffstat (limited to 'app/ServiceProvider')
-rw-r--r-- | app/ServiceProvider/AuthenticationProvider.php | 3 | ||||
-rw-r--r-- | app/ServiceProvider/RouteProvider.php | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app/ServiceProvider/AuthenticationProvider.php b/app/ServiceProvider/AuthenticationProvider.php index 7617ba95..a516cffe 100644 --- a/app/ServiceProvider/AuthenticationProvider.php +++ b/app/ServiceProvider/AuthenticationProvider.php @@ -93,8 +93,9 @@ class AuthenticationProvider implements ServiceProviderInterface $acl->add('Export', '*', Role::PROJECT_MANAGER); $acl->add('File', array('screenshot', 'create', 'save', 'remove', 'confirm'), Role::PROJECT_MEMBER); $acl->add('Gantt', '*', Role::PROJECT_MANAGER); - $acl->add('Project', array('share', 'integrations', 'notifications', 'edit', 'update', 'duplicate', 'disable', 'enable', 'remove'), Role::PROJECT_MANAGER); + $acl->add('Project', array('share', 'integrations', 'notifications', 'duplicate', 'disable', 'enable', 'remove'), Role::PROJECT_MANAGER); $acl->add('ProjectPermission', '*', Role::PROJECT_MANAGER); + $acl->add('ProjectEdit', '*', Role::PROJECT_MANAGER); $acl->add('Projectuser', '*', Role::PROJECT_MANAGER); $acl->add('Subtask', '*', Role::PROJECT_MEMBER); $acl->add('Swimlane', '*', Role::PROJECT_MANAGER); diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php index ce66090b..5a5c8652 100644 --- a/app/ServiceProvider/RouteProvider.php +++ b/app/ServiceProvider/RouteProvider.php @@ -52,7 +52,6 @@ class RouteProvider implements ServiceProviderInterface $container['route']->addRoute('project/:project_id/customer-filter', '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/edit', 'project', 'edit'); $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'); @@ -61,6 +60,11 @@ class RouteProvider implements ServiceProviderInterface $container['route']->addRoute('project/:project_id/permissions', 'ProjectPermission', 'index'); $container['route']->addRoute('project/:project_id/import', 'taskImport', 'step1'); + // ProjectEdit routes + $container['route']->addRoute('project/:project_id/edit', 'ProjectEdit', 'edit'); + $container['route']->addRoute('project/:project_id/edit/dates', 'ProjectEdit', 'dates'); + $container['route']->addRoute('project/:project_id/edit/description', 'ProjectEdit', 'description'); + // ProjectUser routes $container['route']->addRoute('projects/managers/:user_id', 'projectuser', 'managers'); $container['route']->addRoute('projects/members/:user_id', 'projectuser', 'members'); |