Show list of feedback messages for specific exercises
This commit is contained in:
@ -12,7 +12,7 @@ class ExercisePolicy < AdminOrAuthorPolicy
|
||||
@user.internal_user?
|
||||
end
|
||||
|
||||
[:clone?, :destroy?, :edit?, :statistics?, :update?].each do |action|
|
||||
[:clone?, :destroy?, :edit?, :statistics?, :update?, :feedback?].each do |action|
|
||||
define_method(action) { admin? || author?}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user