aboutsummaryrefslogtreecommitdiffstats
path: root/include/reddav.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-05 17:54:20 -0800
committerfriendica <info@friendica.com>2014-01-05 17:54:20 -0800
commitbcb812b2f8b4466b9dd76ca280d328a80638c8de (patch)
treefc71aeb1590724303f270760a0623f1bcd01d75a /include/reddav.php
parentcbc34a40adc167de5c0c263f0407ba721d0f973e (diff)
downloadvolse-hubzilla-bcb812b2f8b4466b9dd76ca280d328a80638c8de.tar.gz
volse-hubzilla-bcb812b2f8b4466b9dd76ca280d328a80638c8de.tar.bz2
volse-hubzilla-bcb812b2f8b4466b9dd76ca280d328a80638c8de.zip
set channel default permissions on file creation
Diffstat (limited to 'include/reddav.php')
-rw-r--r--include/reddav.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/reddav.php b/include/reddav.php
index d3a7b35b5..65b14fe60 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -184,8 +184,8 @@ class RedDirectory extends DAV\Node implements DAV\ICollection {
dbg(1);
- $r = q("INSERT INTO attach ( aid, uid, hash, filename, filetype, filesize, revision, data, created, edited )
- VALUES ( %d, %d, '%s', '%s', '%s', %d, %d, '%s', '%s', '%s' ) ",
+ $r = q("INSERT INTO attach ( aid, uid, hash, filename, filetype, filesize, revision, data, created, edited, allow_cid, allow_gid, deny_cid, deny_gid )
+ VALUES ( %d, %d, '%s', '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
intval($c[0]['channel_account_id']),
intval($c[0]['channel_id']),
dbesc($hash),
@@ -195,7 +195,13 @@ dbg(1);
intval(0),
dbesc(stream_get_contents($data)),
dbesc(datetime_convert()),
- dbesc(datetime_convert())
+ dbesc(datetime_convert()),
+ dbesc($[0]['channel_allow_cid']),
+ dbesc($[0]['channel_allow_gid']),
+ dbesc($[0]['channel_deny_cid']),
+ dbesc($[0]['channel_deny_gid']),
+
+
);
$r = q("update attach set filesize = length(data) where hash = '%s' and uid = %d limit 1",