Properly nest UserExerciseFeedback

Fixes CODEOCEAN-108
This commit is contained in:
Sebastian Serth
2023-11-23 01:08:28 +01:00
committed by Sebastian Serth
parent b43dfa364e
commit e9f099d59f
7 changed files with 41 additions and 40 deletions

View File

@ -8,4 +8,9 @@ class UserExerciseFeedbackPolicy < AdminOrAuthorPolicy
def new?
everyone
end
def show?
# We don't have a show action, so no one can show a UserExerciseFeedback directly.
no_one
end
end