From 2d80c148ba8c1e83508a4c9e7318fa388740c9ff Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 4 Jun 2012 10:42:09 +0200 Subject: Don't allow user to delete, rename and re-share the "Shared" directory --- lib/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/files.php') diff --git a/lib/files.php b/lib/files.php index 79d214665de..1e88a7b608d 100644 --- a/lib/files.php +++ b/lib/files.php @@ -224,7 +224,7 @@ class OC_Files { * @param file $name */ public static function delete($dir,$file){ - if(OC_User::isLoggedIn()){ + if(OC_User::isLoggedIn() && ($dir!= '' || $file != 'Shared')) { $file=$dir.'/'.$file; return OC_Filesystem::unlink($file); } -- cgit v1.2.3