Skip to content
Snippets Groups Projects
Unverified Commit 22af0e52 authored by Brian Mesick's avatar Brian Mesick Committed by GitHub
Browse files

Merge pull request #19409 from mitodl/course_import_data_dir

Fix inconsistency in assumed data dir for course import
parents 832d3549 c63d153c
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,8 @@ def safemembers(members, base):
base = resolved(base)
# check that we're not trying to import outside of the data_dir
if not base.startswith(resolved(settings.DATA_DIR)):
# check that we're not trying to import outside of the github_repo_root
if not base.startswith(resolved(settings.GITHUB_REPO_ROOT)):
raise SuspiciousOperation("Attempted to import course outside of data dir")
for finfo in members:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment