Skip to content

Commit c85cad0

Browse files
committed
Merge pull request #229 from symfony-cmf/fix-admin
only show routes under the admin prefix.
2 parents 076eb53 + 6139f07 commit c85cad0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Admin/RouteAdmin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ protected function configureDatagridFilters(DatagridMapper $datagridMapper)
106106

107107
public function setRouteRoot($routeRoot)
108108
{
109+
// make limitation on base path work
110+
parent::setRootPath($routeRoot);
109111
// TODO: fix widget to show root node when root is selectable
110112
// https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/issues/148
111113
$this->routeRoot = PathHelper::getParentPath($routeRoot);

0 commit comments

Comments
 (0)