Only staff with good permission mask can visit Django Admin
This commit is contained in:
parent
d455c5c533
commit
b8a88eeda4
13 changed files with 196 additions and 162 deletions
|
|
@ -10,9 +10,10 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
{% block content %}
|
||||
{% if user.is_authenticated %}
|
||||
<p class="errornote">
|
||||
{% blocktrans trimmed %}
|
||||
{% blocktrans trimmed with username=request.user.username %}
|
||||
You are authenticated as {{ username }}, but are not authorized to
|
||||
access this page. Would you like to login to a different account?
|
||||
access this page. Would you like to login to a different account,
|
||||
or with a higher permission mask?
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue