FIX: some small errors about registrations/participants/payments/permissions.

This commit is contained in:
2019-07-03 09:39:56 +02:00
parent 4c079b398f
commit 923b099ba7
3 changed files with 4 additions and 3 deletions

View File

@@ -476,7 +476,7 @@ class EventUpdateView(EventPermissionMixin, generic.UpdateView):
def get_form(self, form_class=None):
form = super(EventUpdateView, self).get_form(form_class)
if not self.has_permission('accept', self.object):
if not (self.has_permission('accept', self.object) or self.has_permission('publish', self.object)):
form.fields['registration_howto'].disabled = True
form.fields['planned_publication_date'].disabled = True
form.fields['planned_publication_date'].widget = forms.generic.forms.HiddenInput()