Skip to content

Commit

Permalink
[course_admin/edit_task] Allow operations on hidden dir/files
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygego committed Jul 28, 2023
1 parent 161d4a5 commit 541c0cf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions inginious/frontend/pages/course_admin/task_edit_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,6 @@ def verify_path(self, courseid, taskid, path, new_path=False):
self.task_factory.get_available_task_file_extensions():
return None

# do not allow hidden dir/files
if path != ".":
for i in path.split(os.path.sep):
if i.startswith("."):
return None
return path

def action_edit(self, courseid, taskid, path):
Expand Down

0 comments on commit 541c0cf

Please sign in to comment.