aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-12-30 13:56:27 +0100
committermarijus <mario@mariovavti.com>2014-12-30 13:56:27 +0100
commit8e034a3b6b67a9aaa20fe9db671350e198fe7c42 (patch)
tree81cff6cedc958e98685a1214829173eeb037ea76
parent6cbbe854d5fd10d0d072dd19a9d3bc82df427d98 (diff)
downloadvolse-hubzilla-8e034a3b6b67a9aaa20fe9db671350e198fe7c42.tar.gz
volse-hubzilla-8e034a3b6b67a9aaa20fe9db671350e198fe7c42.tar.bz2
volse-hubzilla-8e034a3b6b67a9aaa20fe9db671350e198fe7c42.zip
fix recursive file permissions
-rw-r--r--include/attach.php2
-rw-r--r--mod/filestorage.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index ad6ca1b21..a76dd4b28 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -717,7 +717,7 @@ function attach_change_permissions($channel_id, $resource, $allow_cid, $allow_gi
);
if($r) {
foreach($r as $rr) {
- attach_change_permissions($channel_id, $resource, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $recurse);
+ attach_change_permissions($channel_id, $rr['hash'], $allow_cid, $allow_gid, $deny_cid, $deny_gid, $recurse);
}
}
}
diff --git a/mod/filestorage.php b/mod/filestorage.php
index 1767ea6bf..a76a218af 100644
--- a/mod/filestorage.php
+++ b/mod/filestorage.php
@@ -32,7 +32,7 @@ function filestorage_post(&$a) {
$str_group_deny = perms2str($_REQUEST['group_deny']);
$str_contact_deny = perms2str($_REQUEST['contact_deny']);
- attach_change_permissions($channel_id, $resource, $str_contact_allow, $str_group_allow, $str_contact_deny,$str_group_deny, $recurse = false);
+ attach_change_permissions($channel_id, $resource, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny, $recurse);
//Build directory tree and redirect
$channel = $a->get_channel();