Allow admins to create events without a CFP

Admins can now create events before the CFP is created for example
to announce key notes in the splash page.

Closes https://github.com/openSUSE/osem/issues/2348
This commit is contained in:
snpd25 2019-03-07 16:25:25 +05:30 committed by snpd
parent af56498b1e
commit 7e94e0447a

View file

@ -43,7 +43,7 @@
250
words.
- if @program.cfp.enable_registrations?
- if current_user.is_admin? or @program.cfp.enable_registrations?
= f.inputs 'Enable pre-registration' do
= f.input :require_registration, label: 'Require participants to register to your event'
- message = @event.room ? "Value must be between 1 and #{@event.room.size}" : 'Check room capacity after scheduling.'