Explorar el Código

fix isGranted check

Quentin Somazzi hace 9 años
padre
commit
6e181503ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Controller/CRUDController.php

+ 1 - 1
Controller/CRUDController.php

@@ -504,7 +504,7 @@ class CRUDController extends Controller
 
         if (!$url) {
             foreach (array('edit', 'show') as $route) {
-                if ($this->admin->hasRoute($route) && $this->admin->isGranted(strtoupper($route))) {
+                if ($this->admin->hasRoute($route) && $this->admin->isGranted(strtoupper($route), $object)) {
                     $url = $this->admin->generateObjectUrl($route, $object);
                     break;
                 }