aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-16 01:02:41 -0700
committerredmatrix <git@macgirvin.com>2016-07-16 01:02:41 -0700
commitaac0fa2b5fb4f81a567a782bb6bafce7e46fe19e (patch)
tree900ccafbebf27d67e3e2616b93e682e75e041f7c /Zotlabs/Storage
parent17edec8e4a7db41eca8ba9e42d9caa1a17362bbc (diff)
downloadvolse-hubzilla-aac0fa2b5fb4f81a567a782bb6bafce7e46fe19e.tar.gz
volse-hubzilla-aac0fa2b5fb4f81a567a782bb6bafce7e46fe19e.tar.bz2
volse-hubzilla-aac0fa2b5fb4f81a567a782bb6bafce7e46fe19e.zip
os_delete_prohibit
Diffstat (limited to 'Zotlabs/Storage')
-rw-r--r--Zotlabs/Storage/File.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Storage/File.php b/Zotlabs/Storage/File.php
index ecd15cc55..5a70a99f1 100644
--- a/Zotlabs/Storage/File.php
+++ b/Zotlabs/Storage/File.php
@@ -337,6 +337,10 @@ class File extends DAV\Node implements DAV\IFile {
}
}
+ if(get_pconfig($this->auth->owner_id,'system','os_delete_prohibit') && \App::$module == 'dav') {
+ throw new DAV\Exception\Forbidden('Permission denied.');
+ }
+
attach_delete($this->auth->owner_id, $this->data['hash']);
$ch = channelx_by_n($this->auth->owner_id);