workshop attendee: config limited to orga status

This commit is contained in:
Élie Bouttier 2016-11-08 21:27:15 +01:00
parent 483a794d23
commit 199d2b6d93
1 changed files with 4 additions and 0 deletions

View File

@ -194,6 +194,8 @@ def talk_edit(request, talk=None):
form.fields.pop('duration')
form.fields.pop('start_date')
form.fields.pop('room')
form.fields.pop('registration_required')
form.fields.pop('attendees_limit')
if not talk.is_moderable_by(request.user):
form.fields['title'].disabled = True
else:
@ -203,6 +205,8 @@ def talk_edit(request, talk=None):
form.fields.pop('duration')
form.fields.pop('start_date')
form.fields.pop('room')
form.fields.pop('registration_required')
form.fields.pop('attendees_limit')
if request.method == 'POST' and form.is_valid():
if hasattr(talk, 'id'):
talk = form.save()