Allow users to hand out admin rights.

This commit is contained in:
James Cole
2020-03-23 17:54:49 +01:00
parent 76c89a8efa
commit d6797b8428
7 changed files with 30 additions and 8 deletions

View File

@@ -22,7 +22,9 @@
{{ ExpandedForm.password('password_confirmation') }}
{{ ExpandedForm.checkbox('blocked') }}
{{ ExpandedForm.select('blocked_code', codes, user.blocked_code) }}
{% if user.id != currentUser.id %}
{{ ExpandedForm.checkbox('is_owner',1,isAdmin) }}
{% endif %}
</div>
</div>
</div>