Преглед на файлове

Fix correct id in aclAction

Baptiste Meyer преди 12 години
родител
ревизия
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);