From 08ce579e8ddc78ee055d8d733671257d834b4923 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 28 Nov 2018 15:55:44 +0100 Subject: [PATCH] Add comment about #insights? in SubmissionPolicy --- app/policies/submission_policy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/policies/submission_policy.rb b/app/policies/submission_policy.rb index ffb0c804..32916450 100644 --- a/app/policies/submission_policy.rb +++ b/app/policies/submission_policy.rb @@ -8,6 +8,7 @@ class SubmissionPolicy < ApplicationPolicy everyone 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| define_method(action) { admin? || author? } end