Call can_manage_group_type() with the right information. Fixes an issue with chartering buttons not being visible for ADs.
- Legacy-Id: 13778
This commit is contained in:
parent
c5b52ae91e
commit
b97d45f5ba
|
@ -376,7 +376,7 @@ def chartering_groups(request):
|
|||
|
||||
for t in group_types:
|
||||
t.chartering_groups = Group.objects.filter(type=t, charter__states__in=charter_states).select_related("state", "charter").order_by("acronym")
|
||||
t.can_manage = can_manage_group_type(request.user, None, t)
|
||||
t.can_manage = can_manage_group_type(request.user, None, t.slug)
|
||||
|
||||
for g in t.chartering_groups:
|
||||
g.chartering_type = get_chartering_type(g.charter)
|
||||
|
|
Loading…
Reference in a new issue