Skip to content

Commit 59df273

Browse files
committed
In the construct_group_menu_context routine, use others['can_manage'] when provided.
- Legacy-Id: 19197
1 parent b22db74 commit 59df273

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/group/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ def construct_group_menu_context(request, group, selected, group_type, others):
231231
# actions
232232
actions = []
233233

234-
can_manage = others['can_manage']
234+
if 'can_manage' in others.keys():
235+
can_manage = others['can_manage']
236+
else:
237+
can_manage = can_manage_group_type(request.user, group)
235238
can_edit_group = False # we'll set this further down
236239

237240
if group.features.has_milestones:

0 commit comments

Comments
 (0)