Remove dead code from ProxyExercise

This commit is contained in:
Sebastian Serth
2022-09-04 00:05:38 +02:00
parent 49f4f0e6c5
commit b67daedfc9
3 changed files with 1 additions and 13 deletions

View File

@ -13,10 +13,6 @@ class ProxyExercisePolicy < AdminOrAuthorPolicy
define_method(action) { admin? || author? }
end
[:reload?].each do |action|
define_method(action) { everyone }
end
class Scope < Scope
def resolve
if @user.admin?