Pārlūkot izejas kodu

Docs - Update PASSWORD_REQUIRED_TEMPLATE example

- Add messaging for signed in users that do not have permission for a page
Damascene 4 gadi atpakaļ
vecāks
revīzija
5d78e03084
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 1 0
      CONTRIBUTORS.rst
  2. 4 1
      docs/advanced_topics/privacy.md

+ 1 - 0
CONTRIBUTORS.rst

@@ -674,6 +674,7 @@ Contributors
 * Ivy Jeptoo
 * Jeremy Thompson
 * Ben Gosney
+* damascene
 
 Translators
 ===========

+ 4 - 1
docs/advanced_topics/privacy.md

@@ -55,7 +55,10 @@ A basic template suitable for use as `PASSWORD_REQUIRED_TEMPLATE` might look lik
     </head>
     <body>
         <h1>Password required</h1>
-        <p>You need a password to access this page.</p>
+        <p>
+            You need a password to access this page.
+            {% if user.is_authenticated %}To proceed, please login with an account that has access.{% endif %}
+        </p>
         <form action="{{ action_url }}" method="POST">
             {% csrf_token %}