浏览代码

Merge pull request #1513 from coopTilleuls/fix_id_aclaction

Fix id in aclAction of CRUDController
Thomas 11 年之前
父节点
当前提交
f695ac6286
共有 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);