Feature #2484 Enabled delete files and folders for students into his/her shared folder

skala
Juan Carlos Raña 15 years ago
parent 62ede2dadd
commit 1ba34370b0
  1. 5
      main/document/document.php

@ -441,7 +441,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
//START ACTION MENU
/* MOVE FILE OR DIRECTORY */
//Only teacher and all users into their group
//Only teacher and all users into their group and each user into his/her shared folder
if($is_allowed_to_edit || $group_member_with_upload_rights || is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id) || is_my_shared_folder($_user['user_id'], Security::remove_XSS($_POST['move_to']), $current_session_id)){
$my_get_move = Security::remove_XSS($_GET['move']);
if (isset($_GET['move']) && $_GET['move'] != '') {
@ -516,9 +516,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
}
}
}
/* DELETE FILE OR DIRECTORY */
//Only teacher and all users into their group
if($is_allowed_to_edit || $group_member_with_upload_rights){
if($is_allowed_to_edit || $group_member_with_upload_rights || is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id)){
if (isset($_GET['delete'])) {
if (api_is_coach()) {

Loading…
Cancel
Save