Remove legacy save search endpoint

This commit is contained in:
Sebastian Serth
2023-07-28 13:18:39 +02:00
parent 401044fef8
commit 28a4b672f9
8 changed files with 4 additions and 29 deletions

View File

@ -29,7 +29,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
define_method(action) { (admin? || teacher_in_study_group? || author?) && @user.codeharbor_link }
end
%i[implement? working_times? intervention? search? reload?].each do |action|
%i[implement? working_times? intervention? reload?].each do |action|
define_method(action) do
return no_one unless @record.files.any? {|f| f.hidden == false } && @record.execution_environment.present?