mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-22 02:18:21 +02:00
Only staff with good permission mask can visit Django Admin
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user