diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-03-20 17:37:01 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-03-20 17:37:01 +0100 |
commit | 6698d7b03a88533eda8d79581b7e13565d36fa7e (patch) | |
tree | 30655f16af4282d3fbe1545dc53b2e70865997de /mod/filestorage.php | |
parent | fdac8373d84845cecadbc4bd1bb9c2a00122a05a (diff) | |
download | volse-hubzilla-6698d7b03a88533eda8d79581b7e13565d36fa7e.tar.gz volse-hubzilla-6698d7b03a88533eda8d79581b7e13565d36fa7e.tar.bz2 volse-hubzilla-6698d7b03a88533eda8d79581b7e13565d36fa7e.zip |
possible improvement regarding deletion
Diffstat (limited to 'mod/filestorage.php')
-rw-r--r-- | mod/filestorage.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/filestorage.php b/mod/filestorage.php index 92474f336..07987e4c4 100644 --- a/mod/filestorage.php +++ b/mod/filestorage.php @@ -32,13 +32,15 @@ function filestorage_post(&$a) { $str_contact_allow = perms2str($_REQUEST['contact_allow']); $str_group_deny = perms2str($_REQUEST['group_deny']); $str_contact_deny = perms2str($_REQUEST['contact_deny']); - + + //get the object before permissions change so we can catch eventual former allowed members + $object = get_file_activity_object($channel_id, $resource, $cloudPath); + 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(); $cloudPath = get_parent_cloudpath($channel_id, $channel['channel_address'], $resource); - $object = get_file_activity_object($channel_id, $resource, $cloudPath); file_activity($channel_id, $object, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny, 'post', $no_activity); |