Fixed the 'Request closing group' button incorrectly showing for group chairs. Fixes issue #2724.

- Legacy-Id: 16233
This commit is contained in:
Henrik Levkowetz 2019-06-05 14:16:14 +00:00
parent 0bc7af8e0f
commit f4e2352eed

View file

@ -234,7 +234,7 @@ def construct_group_menu_context(request, group, selected, group_type, others):
if group.features.customize_workflow and can_manage:
actions.append((u"Customize workflow", urlreverse("ietf.group.views.customize_workflow", kwargs=kwargs)))
if group.state_id in ("active", "dormant") and not group.type_id in ["sdo", "rfcedtyp", "isoc", ] and can_manage:
if group.state_id in ("active", "dormant") and not group.type_id in ["sdo", "rfcedtyp", "isoc", ] and can_manage_group_type(request.user, group):
actions.append((u"Request closing group", urlreverse("ietf.group.views.conclude", kwargs=kwargs)))
d = {