Fixed a problem with accessing a group's workflow customisation page from /group/{{acronym}} instead of /wg/{{acronym}}/.
- Legacy-Id: 11290
This commit is contained in:
parent
e15a8c1d11
commit
b0cd3a0066
|
@ -393,8 +393,10 @@ def conclude(request, acronym, group_type=None):
|
|||
})
|
||||
|
||||
@login_required
|
||||
def customize_workflow(request, group_type, acronym):
|
||||
def customize_workflow(request, group_type=None, acronym=None):
|
||||
group = get_group_or_404(acronym, group_type)
|
||||
if not group_type:
|
||||
group_type = group.type_id
|
||||
if not group.features.customize_workflow:
|
||||
raise Http404
|
||||
|
||||
|
|
Loading…
Reference in a new issue