From 7e94e0447a664465a3cac01a8211f78bd0cd0efc Mon Sep 17 00:00:00 2001 From: snpd25 <32434989+snpd25@users.noreply.github.com> Date: Thu, 7 Mar 2019 16:25:25 +0530 Subject: [PATCH] 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 --- app/views/proposals/_proposal_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/proposals/_proposal_form.html.haml b/app/views/proposals/_proposal_form.html.haml index 9629e82d..e4d72ae3 100644 --- a/app/views/proposals/_proposal_form.html.haml +++ b/app/views/proposals/_proposal_form.html.haml @@ -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.'