wrong resource (attach_change_permissions())

This commit is contained in:
redmatrix 2016-10-03 17:23:43 -07:00
parent cef1aa6d1b
commit fe7b7773ba

View File

@ -1246,7 +1246,7 @@ function attach_change_permissions($channel_id, $resource, $allow_cid, $allow_gi
}
if($sync) {
$data = attach_export_data($channel,$resource_id);
$data = attach_export_data($channel,$resource);
if($data)
build_sync_packet($channel['channel_id'],array('file' => array($data)));