Sprankelprachtig aan/afmeldsysteem

activities_helper.rb 239B

123456789
  1. module ActivitiesHelper
  2. def require_organizer!
  3. return if @activity.may_change?(current_person)
  4. flash_message(:danger, I18n.t('authentication.organizer_required'))
  5. redirect_to group_activity_path(@group, @activity)
  6. end
  7. end