Files
codeocean/app/policies/hint_policy.rb

6 lines
113 B
Ruby

class HintPolicy < AdminOrAuthorPolicy
def author?
@user == @record.execution_environment.author
end
end