Skip to content

Commit

Permalink
Deleting files when using moodle authentication does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Jun 26, 2020
1 parent 1eb5a53 commit 9d59b40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website_code/php/properties/delete_file_template.php
Expand Up @@ -29,11 +29,10 @@
*/

include "../error_library.php";
include "../../../config.php";

/** XXX/ TODO SECURITY HOLE - NEED TO CHECK $_POST['file'] IS VALID */

session_start();

if(!isset($_SESSION['toolkits_logon_username'])) {
die("Sorry; you can't delete this without being logged in.");
}
Expand Down

0 comments on commit 9d59b40

Please sign in to comment.