Disallow file creation for teachers

This commit is contained in:
Sebastian Serth
2020-12-03 17:07:32 +01:00
parent 5eaa508b74
commit 4e73214dd4

View File

@ -14,7 +14,7 @@ module CodeOcean
def create?
if @record.context.is_a?(Exercise)
admin? || author?
admin? # FIXME: || author?
elsif @record.context.is_a?(Submission) and @record.context.exercise.allow_file_creation
author?
else