Commit 6e750b4f by Julien Jorry

BO : empêcher d'éditer et supprimer les groupes (rôles)

parent 43f00f57
...@@ -12,7 +12,7 @@ sonata_user: ...@@ -12,7 +12,7 @@ sonata_user:
controller: App\Controller\CRUD\CRUDController controller: App\Controller\CRUD\CRUDController
translation: SonataUserBundle translation: SonataUserBundle
group: group:
class: Sonata\UserBundle\Admin\Entity\GroupAdmin class: App\Application\Sonata\UserBundle\Admin\GroupAdmin
controller: App\Controller\CRUD\GroupCRUDController controller: App\Controller\CRUD\GroupCRUDController
translation: SonataUserBundle translation: SonataUserBundle
impersonating: impersonating:
......
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Application\Sonata\UserBundle\Admin;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\UserBundle\Admin\Model\GroupAdmin as BaseGroupAdmin;
class GroupAdmin extends BaseGroupAdmin
{
protected function configureRoutes(RouteCollection $collection)
{
$collection->clearExcept('list');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment