Controller/AdminBlockController.php 1 location
|
@@ 130-137 (lines=8) @@
|
127 |
|
$backToNodeList = true; |
128 |
|
} |
129 |
|
|
130 |
|
if (!$url) { |
131 |
|
foreach (['edit', 'show'] as $route) { |
132 |
|
if ($this->admin->hasRoute($route) && $this->admin->isGranted(strtoupper($route), $object)) { |
133 |
|
$url = $this->admin->generateObjectUrl($route, $object); |
134 |
|
break; |
135 |
|
} |
136 |
|
} |
137 |
|
} |
138 |
|
|
139 |
|
if ($backToNodeList || !$url) { |
140 |
|
$url = $instanceAdmin->generateUrl('list'); |
Controller/AdminNodeController.php 1 location
|
@@ 140-147 (lines=8) @@
|
137 |
|
$backToNodeList = true; |
138 |
|
} |
139 |
|
|
140 |
|
if (!$url && !$backToNodeList) { |
141 |
|
foreach (['edit', 'show'] as $route) { |
142 |
|
if ($this->admin->hasRoute($route) && $this->admin->isGranted(strtoupper($route), $object)) { |
143 |
|
$url = $this->admin->generateObjectUrl($route, $object); |
144 |
|
break; |
145 |
|
} |
146 |
|
} |
147 |
|
} |
148 |
|
|
149 |
|
if ($backToNodeList || !$url) { |
150 |
|
$url = $instanceAdmin->generateUrl('list'); |