Refactor permission (need to re adjust), 2 test not passed(registration, permissions)
This commit is contained in:
parent
838bd2bb23
commit
a17e47acb9
17 changed files with 107 additions and 346 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{% load i18n pretty_money perms %}
|
||||
{% load i18n pretty_money perms memberinfo %}
|
||||
|
||||
<dl class="row">
|
||||
<dt class="col-xl-6">{% trans 'name'|capfirst %}</dt>
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if "note.view_note"|has_perm:club.note %}
|
||||
{% if "note.view_note"|has_perm:club.note and user|is_member:club %}
|
||||
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ club.note.balance | pretty_money }}</dd>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue