Disallow file creation for teachers
This commit is contained in:
@ -14,7 +14,7 @@ module CodeOcean
|
|||||||
|
|
||||||
def create?
|
def create?
|
||||||
if @record.context.is_a?(Exercise)
|
if @record.context.is_a?(Exercise)
|
||||||
admin? || author?
|
admin? # FIXME: || author?
|
||||||
elsif @record.context.is_a?(Submission) and @record.context.exercise.allow_file_creation
|
elsif @record.context.is_a?(Submission) and @record.context.exercise.allow_file_creation
|
||||||
author?
|
author?
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user