add uuid check

This commit is contained in:
Karol
2019-10-16 19:19:28 +02:00
parent 9c009ee4ec
commit 4ab78c170e
14 changed files with 155 additions and 14 deletions

View File

@ -7,7 +7,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
define_method(action) { admin? || teacher? }
end
[:clone?, :destroy?, :edit?, :statistics?, :update?, :feedback?, :push_proforma_xml?].each do |action|
[:clone?, :destroy?, :edit?, :statistics?, :update?, :feedback?, :push_proforma_xml?, :export_external_check?].each do |action|
define_method(action) { admin? || author? }
end