mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): only elevated users are allowed to suspend accounts
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
446a082352
commit
85ebc72e8a
5 changed files with 72 additions and 9 deletions
|
@ -42,14 +42,16 @@
|
|||
"account is inactive." | tr }}</em>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="id_inactive">{% trans %}Inactive{% endtrans %}:</label>
|
||||
<input id="id_inactive" type="checkbox" name="J"
|
||||
{% if inactive %}
|
||||
checked="checked"
|
||||
{% endif %}
|
||||
>
|
||||
</p>
|
||||
{% if request.user.is_elevated() %}
|
||||
<p>
|
||||
<label for="id_inactive">{% trans %}Inactive{% endtrans %}:</label>
|
||||
<input id="id_inactive" type="checkbox" name="J"
|
||||
{% if inactive %}
|
||||
checked="checked"
|
||||
{% endif %}
|
||||
>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if request.user.has_credential("CRED_ACCOUNT_CHANGE_TYPE") %}
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue