瀏覽代碼

updated docs

Roel Sint 13 年之前
父節點
當前提交
70ef8ad30b
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      Resources/doc/reference/security.rst

+ 14 - 0
Resources/doc/reference/security.rst

@@ -0,0 +1,14 @@
+Security
+========
+
+See the security part in the documentation of the Admin bundle. When using ACL, the object ACL's need to be created
+to have the ACL implementation working correctly. Otherwise access can be denied because the access rules are not found
+for an object.
+
+If you have Admin classes, you can generate the object ACL rules for each object of an admin:
+
+.. code-block:: sh
+
+    $ php app/console sonata:admin:generate-object-acl
+
+Optionally, you can specify an object owner, this will be asked when the command is run.