Modified the file, fixed the bug where the admin, can't backup the course where he isn't a teacher. eliminated the condition is_courseadmin

skala
Ricardo Rodriguez 15 years ago
parent 530cbe259c
commit 74f60d2c49
  1. 7
      main/course_info/download.php

@ -52,7 +52,7 @@ $content_type = '';
if (in_array(strtolower($extension), array('xml','csv')) && (api_is_platform_admin(true) || api_is_drh())) {
$content_type = 'application/force-download';
}
elseif (strtolower($extension) == 'zip' && $_cid && $is_courseAdmin) {
elseif (strtolower($extension) == 'zip' && $_cid) {
$content_type = 'application/force-download';
}
@ -60,6 +60,11 @@ if (empty($content_type)) {
api_not_allowed(true);
}
/*
===============================================================================================
*/
header('Expires: Wed, 01 Jan 1990 00:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: public');

Loading…
Cancel
Save