diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-04 10:42:09 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-04 10:42:09 +0200 |
commit | 2d80c148ba8c1e83508a4c9e7318fa388740c9ff (patch) | |
tree | 82775a580260568c4578185e4ceb81f398affe27 /lib/files.php | |
parent | f3c1d1eded96e948b2ddc608de48778b62232231 (diff) | |
download | nextcloud-server-2d80c148ba8c1e83508a4c9e7318fa388740c9ff.tar.gz nextcloud-server-2d80c148ba8c1e83508a4c9e7318fa388740c9ff.zip |
Don't allow user to delete, rename and re-share the "Shared" directory
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |