aboutsummaryrefslogtreecommitdiffstats
path: root/include/RedDAV/RedFile.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-30 17:11:16 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-30 17:11:16 -0700
commitd5a40cac25e1bcc936a4010ec0038f8e5143c0a0 (patch)
treeb071675ce7137dd5fc74b4ee47776dad68424796 /include/RedDAV/RedFile.php
parentdf41ce9536ad72cdc2d1edb1983a48519223da77 (diff)
parent1097cd25830bc11d9aacf24f0e43322d6f397ca3 (diff)
downloadvolse-hubzilla-d5a40cac25e1bcc936a4010ec0038f8e5143c0a0.tar.gz
volse-hubzilla-d5a40cac25e1bcc936a4010ec0038f8e5143c0a0.tar.bz2
volse-hubzilla-d5a40cac25e1bcc936a4010ec0038f8e5143c0a0.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
several dav fixes Conflicts: include/items.php
Diffstat (limited to 'include/RedDAV/RedFile.php')
-rw-r--r--include/RedDAV/RedFile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/RedDAV/RedFile.php b/include/RedDAV/RedFile.php
index e4f9c21b9..b33b30832 100644
--- a/include/RedDAV/RedFile.php
+++ b/include/RedDAV/RedFile.php
@@ -300,7 +300,7 @@ class RedFile extends DAV\Node implements DAV\IFile {
}
if ($this->auth->owner_id !== $this->auth->channel_id) {
- if (($this->auth->observer !== $this->data['creator']) || ($this->data['flags'] & ATTACH_FLAG_DIR)) {
+ if (($this->auth->observer !== $this->data['creator']) || intval($this->data['is_dir'])) {
throw new DAV\Exception\Forbidden('Permission denied.');
}
}