Commit b474a2b9 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou

Check if current user exists before displaying warning

parent 3fcab4d2
Pipeline #31799 passed with stage
in 37 minutes and 55 seconds
- if current_user.volunteer? && current_user.volunteer.unsubmitted_semester_feedbacks?
- if !current_user.nil? && current_user.volunteer? && current_user.volunteer.unsubmitted_semester_feedbacks?
- current_user.volunteer.unsubmitted_semester_feedbacks.each do |spv|
- message = 'Sie haben einen ausstehenden Halbjahres-Rapport für dieses Semester. '
- message << "<a href='#{review_semester_semester_process_volunteer_path(spv)}'>Bitte klicken Sie hier um diesen zu bestätigen.</a>".html_safe
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment