download complete submission as one zip file

This commit is contained in:
Ralf Teusner
2016-07-15 18:25:58 +02:00
parent 41370a8703
commit 09533a5556
8 changed files with 31 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ class SubmissionPolicy < ApplicationPolicy
everyone
end
[:download_file?, :render_file?, :run?, :score?, :show?, :statistics?, :stop?, :test?].each do |action|
[:download?, :download_file?, :render_file?, :run?, :score?, :show?, :statistics?, :stop?, :test?].each do |action|
define_method(action) { admin? || author? }
end