transferred Code Ocean from original repository to GitHub
This commit is contained in:
5
app/policies/error_policy.rb
Normal file
5
app/policies/error_policy.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class ErrorPolicy < AdminOrAuthorPolicy
|
||||
def author?
|
||||
@user == @record.execution_environment.author
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user