From 4737f0588ed636ada043bed2b6d71b36692c5bdf Mon Sep 17 00:00:00 2001 From: "Peter E. Yee" Date: Sat, 21 Mar 2020 17:17:25 +0000 Subject: [PATCH] Changed so that only WGs/RGs can be closed, per RJS. Fixes #1578. Commit ready for merge. - Legacy-Id: 17483 --- ietf/group/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/group/utils.py b/ietf/group/utils.py index 39891689b..20e31081d 100644 --- a/ietf/group/utils.py +++ b/ietf/group/utils.py @@ -247,7 +247,8 @@ def construct_group_menu_context(request, group, selected, group_type, others): if group.features.customize_workflow and can_manage: actions.append(("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_group_type(request.user, group): + #if group.state_id in ("active", "dormant") and not group.type_id in ["sdo", "rfcedtyp", "isoc", ] and can_manage_group_type(request.user, group): + if group.state_id in ("active", "dormant") and group.type_id in ["wg", "rg", ] and can_manage_group_type(request.user, group): actions.append(("Request closing group", urlreverse("ietf.group.views.conclude", kwargs=kwargs))) d = {