Skip to content

Commit

Permalink
Fix escaping of FQDNs, change APPBUNDLE to APP
Browse files Browse the repository at this point in the history
The FQDN in the `security.rst` documentation is incorrect in two places. Fix one by changing one backtick to two backticks, fix the other one by escaping the backslashes. Also, `AppBundle` was replaces to `App` but not in all cases (probably has to do with uppercase).
  • Loading branch information
vitrus authored and OskarStark committed Apr 3, 2019
1 parent 9ae3e52 commit fd6d641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ service), Sonata will check if the user has the ``ROLE_APP_ADMIN_FOO_EDIT`` or `

.. note::

Declaring the same admin as `App\Admin\FooAdmin` results in
``ROLE_APPBUNDLE\ADMIN\FOOADMIN_EDIT`` and ``ROLE_APPBUNDLE\ADMIN\FOOADMIN_ALL``!
Declaring the same admin as ``App\Admin\FooAdmin`` results in
``ROLE_APP\ADMIN\FOOADMIN_EDIT`` and ``ROLE_APP\ADMIN\FOOADMIN_ALL``!

The role name will be based on the name of your admin service.

======================== ======================================================
app.admin.foo ROLE_APP_ADMIN_FOO_{PERMISSION}
my.blog.admin.foo_bar ROLE_MY_BLOG_ADMIN_FOO_BAR_{PERMISSION}
App\Admin\FooAdmin ROLE_APPBUNDLE\ADMIN\FOOADMIN_{PERMISSION}
App\\Admin\\FooAdmin ROLE_APP\\ADMIN\\FOOADMIN_{PERMISSION}
======================== ======================================================

.. note::
Expand Down

0 comments on commit fd6d641

Please sign in to comment.