Add comment about #insights? in SubmissionPolicy
This commit is contained in:
@ -8,6 +8,7 @@ class SubmissionPolicy < ApplicationPolicy
|
|||||||
everyone
|
everyone
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# insights? is used in the flowr_controller.rb as we use it to authorize the user for a submission
|
||||||
[:download?, :download_file?, :render_file?, :run?, :score?, :show?, :statistics?, :stop?, :test?, :insights?].each do |action|
|
[:download?, :download_file?, :render_file?, :run?, :score?, :show?, :statistics?, :stop?, :test?, :insights?].each do |action|
|
||||||
define_method(action) { admin? || author? }
|
define_method(action) { admin? || author? }
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user