user ability for registration is used for chcking whether a user can register or not

This commit is contained in:
Your Name 2017-10-13 02:39:36 +05:30 committed by Naman Gupta
parent b1f32caf7c
commit e607aca680
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
- progress_status = event.progress_status
%ul.list-unstyled
- if @conference.registration_open? || (@conference.user_registered? current_user)
- if can? :create, @conference.registrations.new
%li{'class'=>class_for_todo(progress_status['registered'])}
%span{'class'=>icon_for_todo(progress_status['registered'])}
- if progress_status['registered']