[skip ci]

PHRAS-3381_tx-as-classification-plan_MASTER
back controller for ok button
fix : PHRAS-3383
WIP
This commit is contained in:
jygaulier
2021-03-11 20:10:49 +01:00
parent 92df433af0
commit a76f64e892
10 changed files with 482 additions and 63 deletions

View File

@@ -12,9 +12,9 @@
namespace Alchemy\Phrasea\ControllerProvider\Prod;
use Alchemy\Phrasea\Application as PhraseaApplication;
use Alchemy\Phrasea\Core\LazyLocator;
use Alchemy\Phrasea\Controller\Prod\EditController;
use Alchemy\Phrasea\ControllerProvider\ControllerProviderTrait;
use Alchemy\Phrasea\Core\LazyLocator;
use Silex\Application;
use Silex\ControllerProviderInterface;
use Silex\ServiceProviderInterface;
@@ -54,6 +54,11 @@ class Edit implements ControllerProviderInterface, ServiceProviderInterface
$controllers->get('/vocabulary/{vocabulary}/', 'controller.prod.edit:searchVocabularyAction');
/** @uses \Alchemy\Phrasea\Controller\Prod\EditController::applyJSAction */
$controllers
->post('/applyjs/', 'controller.prod.edit:applyJSAction')
->bind('prod_edit_applyJSAction');
$controllers->post('/apply/', 'controller.prod.edit:applyAction');
$controllers->get('/presets/{preset_id}', 'controller.prod.edit:presetsLoadAction');

View File

@@ -42,11 +42,6 @@ class Thesaurus implements ControllerProviderInterface, ServiceProviderInterface
public function connect(Application $app)
{
$controllers = $this->createAuthenticatedCollection($app);
// $firewall = $this->getFirewall($app);
// $controllers->before(function () use ($firewall) {
// $firewall->requireRight(\ACL::CANMODIFRECORD);
// });
/** @uses ThesaurusController::dropRecordsAction() */
$controllers->get('/droprecords', 'controller.prod.thesaurus:dropRecordsAction');