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:
parent
e48ef92137
commit
a00d95608b
@ -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(
|
||||||
|
@ -2988,6 +2988,7 @@
|
|||||||
137,
|
137,
|
||||||
138,
|
138,
|
||||||
139,
|
139,
|
||||||
|
140,
|
||||||
143,
|
143,
|
||||||
146,
|
146,
|
||||||
147,
|
147,
|
||||||
|
Loading…
Reference in New Issue
Block a user