Преглед изворни кода

Fix correct id in aclAction

Baptiste Meyer пре 11 година
родитељ
комит
b3783fef7e
1 измењених фајлова са 2 додато и 0 уклоњено
  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);