Document: Disable actions.

pull/3064/head
Julio Montoya 5 years ago
parent 2fb903dfc5
commit f3c47835f9
  1. 4
      main/document/document.php

@ -385,6 +385,8 @@ switch ($action) {
}
break;
case 'export_to_pdf':
// @todo disabled for v2
break;
if (api_get_setting('students_export2pdf') == 'true' ||
$isAllowedToEdit || api_is_platform_admin()
) {
@ -404,6 +406,7 @@ switch ($action) {
}
break;
case 'copytomyfiles':
// @todo disabled for v2
break;
// Copy a file to general my files user's
if (api_get_setting('allow_my_files') == 'true' &&
@ -507,6 +510,7 @@ switch ($action) {
}
break;
case 'convertToPdf':
// @todo disabled for v2
break;
// PDF format as target by default
$formatTarget = $_REQUEST['formatTarget']

Loading…
Cancel
Save