We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00cdb85 commit 23d2100Copy full SHA for 23d2100
main/course_info/download.php
@@ -31,8 +31,12 @@
31
(api_is_platform_admin(true) || api_is_drh() || CourseManager::is_course_teacher(api_get_user_id(), api_get_course_id()))
32
) {
33
$content_type = 'application/force-download';
34
-} elseif ('zip' === $extension && $_cid && (api_is_platform_admin(true) || api_is_course_admin())) {
35
- $content_type = 'application/force-download';
+} elseif ('zip' === $extension) {
+ if ($_cid && (api_is_platform_admin(true) || api_is_course_admin())) {
36
+ $content_type = 'application/force-download';
37
+ } elseif (empty($_cid) && api_is_platform_admin()) {
38
39
+ }
40
}
41
42
if (empty($content_type)) {
0 commit comments