Allow WG/RG Chairs and secretaries to edit the replaces relationship for any document, not just the documents in their groups. Fixes . Commit ready for merge.

- Legacy-Id: 11058
This commit is contained in:
Robert Sparks 2016-04-02 14:21:08 +00:00
parent 9f90441aa6
commit 051db85076

View file

@ -314,7 +314,7 @@ def replaces(request, name):
doc = get_object_or_404(Document, docalias__name=name)
if doc.type_id != 'draft':
raise Http404
if not (has_role(request.user, ("Secretariat", "Area Director"))
if not (has_role(request.user, ("Secretariat", "Area Director", "WG Chair", "RG Chair", "WG Secretary", "RG Secretary"))
or is_authorized_in_doc_stream(request.user, doc)):
return HttpResponseForbidden("You do not have the necessary permissions to view this page")