Jelajahi Sumber

Merge pull request #1513 from coopTilleuls/fix_id_aclaction

Fix id in aclAction of CRUDController
Thomas 11 tahun lalu
induk
melakukan
f695ac6286
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      Controller/CRUDController.php

+ 2 - 0
Controller/CRUDController.php

@@ -755,6 +755,8 @@ class CRUDController extends Controller
         if (!$this->admin->isAclEnabled()) {
             throw new NotFoundHttpException('ACL are not enabled for this admin');
         }
+        
+        $id = $this->get('request')->get($this->admin->getIdParameter());
 
         $object = $this->admin->getObject($id);