1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Add permission to treasurers to create a club, fix the permission check to renew a membership

This commit is contained in:
Yohann D'ANELLO 2020-09-23 21:36:04 +02:00
parent e48ef92137
commit a00d95608b
2 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class MembershipTable(tables.Table):
fee=0,
)
if PermissionBackend.check_perm(get_current_authenticated_user(),
"member:add_membership", empty_membership): # If the user has right
"member.add_membership", empty_membership): # If the user has right
renew_url = reverse_lazy('member:club_renew_membership',
kwargs={"pk": record.pk})
t = format_html(

View File

@ -2988,6 +2988,7 @@
137,
138,
139,
140,
143,
146,
147,