Disallow file creation for teachers
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user