From 0944178cfbb4583f9aee54f3f9fd542a72f9d46a Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 14 Jan 2019 17:26:54 +0100 Subject: [PATCH] Minor update --- security.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security.rst b/security.rst index a05c280c853..7ed13107fab 100644 --- a/security.rst +++ b/security.rst @@ -910,7 +910,7 @@ Users with the ``ROLE_ADMIN`` role will also have the ``ROLE_USER`` role. And users with ``ROLE_SUPER_ADMIN``, will automatically have ``ROLE_ADMIN``, ``ROLE_ALLOWED_TO_SWITCH`` and ``ROLE_USER`` (inherited from ``ROLE_ADMIN``). -For role hierarchy to work, do not try to call ``$user->getRoles()`` manually:: +For role hierarchy to work, do not try to call ``$user->getRoles()`` manually in a controller:: // BAD - $user->getRoles() will not know about the role hierarchy $hasAccess = in_array('ROLE_ADMIN', $user->getRoles()); @@ -926,8 +926,8 @@ For role hierarchy to work, do not try to call ``$user->getRoles()`` manually:: :doc:`security voter ` that looks for the user roles in the database. -Checking for Security Vulnerabilities in your Dependences ---------------------------------------------------------- +Checking for Security Vulnerabilities in your Dependencies +---------------------------------------------------------- See :doc:`/security/security_checker`.