Added plugin controller (WIP)
This commit is contained in:
@@ -130,6 +130,7 @@ class AuthenticationProvider implements ServiceProviderInterface
|
||||
$acl->add('AvatarFile', 'show', Role::APP_PUBLIC);
|
||||
|
||||
$acl->add('Config', '*', Role::APP_ADMIN);
|
||||
$acl->add('PluginController', '*', Role::APP_ADMIN);
|
||||
$acl->add('Currency', '*', Role::APP_ADMIN);
|
||||
$acl->add('Gantt', array('projects', 'saveProjectDate'), Role::APP_MANAGER);
|
||||
$acl->add('GroupListController', '*', Role::APP_ADMIN);
|
||||
|
||||
@@ -165,7 +165,6 @@ class RouteProvider implements ServiceProviderInterface
|
||||
|
||||
// Config
|
||||
$container['route']->addRoute('settings', 'config', 'index');
|
||||
$container['route']->addRoute('settings/plugins', 'config', 'plugins');
|
||||
$container['route']->addRoute('settings/application', 'config', 'application');
|
||||
$container['route']->addRoute('settings/project', 'config', 'project');
|
||||
$container['route']->addRoute('settings/project', 'config', 'project');
|
||||
@@ -177,6 +176,10 @@ class RouteProvider implements ServiceProviderInterface
|
||||
$container['route']->addRoute('settings/links', 'link', 'index');
|
||||
$container['route']->addRoute('settings/currencies', 'currency', 'index');
|
||||
|
||||
// Plugins
|
||||
$container['route']->addRoute('extensions', 'PluginController', 'show');
|
||||
$container['route']->addRoute('extensions/list', 'PluginController', 'directory');
|
||||
|
||||
// Doc
|
||||
$container['route']->addRoute('documentation/:file', 'doc', 'show');
|
||||
$container['route']->addRoute('documentation', 'doc', 'show');
|
||||
|
||||
Reference in New Issue
Block a user