Implement server side query building for flowr

This commit is contained in:
Maximilian Grundke
2018-09-18 10:34:38 +02:00
parent 29227cbe14
commit 097938aa6b
3 changed files with 45 additions and 1 deletions

View File

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