Browse Source

Fix wrong view role check on AbstractAdmin::getSearchResultLink (#3938)

Sullivan SENECHAL 9 years ago
parent
commit
20d34f564f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Admin/AbstractAdmin.php

+ 1 - 1
Admin/AbstractAdmin.php

@@ -2879,7 +2879,7 @@ abstract class AbstractAdmin implements AdminInterface, DomainObjectInterface
     final public function getSearchResultLink($object)
     {
         foreach ($this->searchResultActions as $action) {
-            if ($this->hasRoute($action) && $this->isGranted(strtoupper($action), $object)) {
+            if ($this->hasRoute($action) && $this->hasAccess($action, $object)) {
                 return $this->generateObjectUrl($action, $object);
             }
         }