From c8a2e634ab128d5fe473d503680409e0469fcc07 Mon Sep 17 00:00:00 2001
From: LaplongeJunior <laplongejunior@gmail.com>
Date: Sat, 1 Aug 2020 17:11:25 +0000
Subject: [PATCH] Oops, delete didn't check the perms from THE PARENT

---
 scripts/libs/file.inc.src | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/libs/file.inc.src b/scripts/libs/file.inc.src
index 663e805..f35edcd 100644
--- a/scripts/libs/file.inc.src
+++ b/scripts/libs/file.inc.src
@@ -188,7 +188,7 @@ end function
 
 // Tries deleting a file, but checks that you have the required permissions first (returns false if unallowed)
 imports.file.Delete = function(file)
-	if not imports.file.FileAccess(file) then return false
+	if not imports.file.FileAccess(file.parent,"w") then return false
 	file.delete()
 	return true
 end function
-- 
GitLab