From 9c36a3d1412c8deff3592771bb240d5daa3ef116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 1 Mar 2018 12:11:41 +0100 Subject: [PATCH 1/2] Clarify unanimous access strategy description --- security/voters.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security/voters.rst b/security/voters.rst index 0fbeab63339..ab3a06fde43 100644 --- a/security/voters.rst +++ b/security/voters.rst @@ -278,7 +278,9 @@ strategies available: This grants access if there are more voters granting access than denying; ``unanimous`` - This only grants access once *all* voters grant access. + This only grants access if there is no voter denying access. + ``allow_if_all_abstain`` configuration option can be used if voter granting + access is also required. In the above scenario, both voters should grant access in order to grant access to the user to read the post. In this case, the default strategy is no longer From 9a0bad505201019ce8e25ffde1a3656b32a3bc62 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 1 Mar 2018 15:17:50 +0100 Subject: [PATCH 2/2] Minor reword --- security/voters.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/voters.rst b/security/voters.rst index ab3a06fde43..86b62bc0995 100644 --- a/security/voters.rst +++ b/security/voters.rst @@ -278,9 +278,9 @@ strategies available: This grants access if there are more voters granting access than denying; ``unanimous`` - This only grants access if there is no voter denying access. - ``allow_if_all_abstain`` configuration option can be used if voter granting - access is also required. + This only grants access if there is no voter denying access. If all voters + abstained from voting, the decision is based on the ``allow_if_all_abstain`` + config option (which defaults to ``false``). In the above scenario, both voters should grant access in order to grant access to the user to read the post. In this case, the default strategy is no longer