Give logins with group IANA access to comment form for drafts, so they don't have to use the old datatracker for that.

- Legacy-Id: 3664
This commit is contained in:
Henrik Levkowetz 2011-11-17 06:13:24 +00:00
parent 19264aaf88
commit ff187d2dd0
2 changed files with 4 additions and 2 deletions

View file

@ -387,7 +387,7 @@ def resurrect(request, name):
class AddCommentForm(forms.Form):
comment = forms.CharField(required=True, widget=forms.Textarea)
@group_required('Area_Director','Secretariat')
@group_required('Area_Director','Secretariat', 'IANA')
def add_comment(request, name):
"""Add comment to Internet Draft."""
doc = get_object_or_404(InternetDraft, filename=name)

View file

@ -1,4 +1,5 @@
{% extends "idrfc/doc_main.html" %}
<!--
{% comment %}
Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
@ -32,6 +33,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% endcomment %}
-->
{% load ietf_filters %}
@ -40,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% include "idrfc/doc_diffs.html" %}
{% endif %}
<h2 style="margin-top:1em;">Document history</h2>
{% if user|in_group:"Area_Director,Secretariat" and doc.in_ietf_process %}
{% if user|in_group:"Area_Director,Secretariat,IANA" and doc.in_ietf_process %}
<div style="margin-bottom:8px" id="history_actions">
<span id="doc_add_comment_button" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="{% url doc_add_comment name=doc.draft_name %}">Add comment</a></span></span>
</div>