Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monnaies-locales
kohinos
Commits
6e750b4f
Commit
6e750b4f
authored
Jan 22, 2019
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BO : empêcher d'éditer et supprimer les groupes (rôles)
parent
43f00f57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
+26
-1
sonata.yaml
config/packages/sonata.yaml
+1
-1
GroupAdmin.php
src/Application/Sonata/UserBundle/Admin/GroupAdmin.php
+25
-0
No files found.
config/packages/sonata.yaml
View file @
6e750b4f
...
...
@@ -12,7 +12,7 @@ sonata_user:
controller
:
App\Controller\CRUD\CRUDController
translation
:
SonataUserBundle
group
:
class
:
Sonata\UserBundle\Admin\Entity
\GroupAdmin
class
:
App\Application\Sonata\UserBundle\Admin
\GroupAdmin
controller
:
App\Controller\CRUD\GroupCRUDController
translation
:
SonataUserBundle
impersonating
:
...
...
src/Application/Sonata/UserBundle/Admin/GroupAdmin.php
0 → 100644
View file @
6e750b4f
<?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'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment