fix recursive file permissions
This commit is contained in:
parent
6cbbe854d5
commit
8e034a3b6b
@ -717,7 +717,7 @@ function attach_change_permissions($channel_id, $resource, $allow_cid, $allow_gi
|
|||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
foreach($r as $rr) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ function filestorage_post(&$a) {
|
|||||||
$str_group_deny = perms2str($_REQUEST['group_deny']);
|
$str_group_deny = perms2str($_REQUEST['group_deny']);
|
||||||
$str_contact_deny = perms2str($_REQUEST['contact_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
|
//Build directory tree and redirect
|
||||||
$channel = $a->get_channel();
|
$channel = $a->get_channel();
|
||||||
|
Reference in New Issue
Block a user