Merged in [11058] from rjsparks@nostrum.com:

Allow WG/RG Chairs and secretaries to edit the replaces relationship for any document, not just the documents in their groups. Fixes #1939.
 - Legacy-Id: 11069
Note: SVN reference [11058] has been migrated to Git commit 051db85076
This commit is contained in:
Henrik Levkowetz 2016-04-02 16:53:34 +00:00
commit 482403d4ff

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")