Fix "Access Denied" when downloading report

This commit is contained in:
Saleem Latif
2016-09-30 15:10:35 +05:00
parent 5573690af6
commit 434584114a
4 changed files with 50 additions and 3 deletions

View File

@@ -194,10 +194,11 @@ class ReportStore(object):
storage_type = config.get('STORAGE_TYPE', '').lower()
if storage_type == 's3':
return DjangoStorageReportStore(
storage_class='storages.backends.s3boto.S3BotoStorage',
storage_class='openedx.core.storage.S3ReportStorage',
storage_kwargs={
'bucket': config['BUCKET'],
'location': config['ROOT_PATH'],
'custom_domain': config.get("CUSTOM_DOMAIN", None),
'querystring_expire': 300,
'gzip': True,
},