From e7a10606671c07ead2b35286d6858c227db98e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Wed, 5 Oct 2016 16:43:36 +0200 Subject: [PATCH] orga can add talk after the closing of the cfp --- proposals/templates/proposals/participate.html | 6 +++--- proposals/views.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proposals/templates/proposals/participate.html b/proposals/templates/proposals/participate.html index 685ad60..7403962 100644 --- a/proposals/templates/proposals/participate.html +++ b/proposals/templates/proposals/participate.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} -{% load i18n %} +{% load accounts_tags i18n %} {% block participatetab %} class="active"{% endblock %} @@ -19,8 +19,8 @@ {% endif %}
-{% if conf.cfp_is_open %} -{% trans "Propose a talk" %} +{% if conf.cfp_is_open or request|orga %} +{% trans "Propose a talk" %} {% else %} {% trans "Sorry, the Call for Participation is closed." %} {% endif %} diff --git a/proposals/views.py b/proposals/views.py index 6a73b5f..03f4567 100644 --- a/proposals/views.py +++ b/proposals/views.py @@ -145,7 +145,7 @@ def talk_edit(request, talk=None): raise PermissionDenied() else: # add new talk conf = Conference.objects.get(site=site) - if not conf.cfp_is_open(): + if not is_orga(request, request.user) and not conf.cfp_is_open(): raise PermissionDenied() form = TalkForm(request.POST or None, instance=talk, site=site) if talk: