Skip to content

Commit

Permalink
Adapt export jobs to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
amaierhofer committed Jun 14, 2018
1 parent 3c19e92 commit edd6eaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/jobs/cevi/export/event_participations_export_job.rb
Expand Up @@ -15,7 +15,7 @@ module Cevi::Export::EventParticipationsExportJob
private

def exporter_with_check
if @controller_params[:details] && Ability.new(user).can?(:update, entries.first)
if @options[:details] && ability.can?(:update, entries.first)
Export::Tabular::People::ParticipationsComplete
else
exporter_without_check
Expand Down
1 change: 0 additions & 1 deletion spec/jobs/export/event_participations_export_job_spec.rb
Expand Up @@ -11,7 +11,6 @@

subject { Export::EventParticipationsExportJob.new(format,
user.id,
course.id,
event_participation_filter,
params) }

Expand Down

0 comments on commit edd6eaf

Please sign in to comment.