1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-30 04:13:01 +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, fee=0,
) )
if PermissionBackend.check_perm(get_current_authenticated_user(), 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', renew_url = reverse_lazy('member:club_renew_membership',
kwargs={"pk": record.pk}) kwargs={"pk": record.pk})
t = format_html( t = format_html(

View File

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