set_from_array($_REQUEST); $x = $acl->get(); attach_change_permissions($channel_id, $resource, $x['allow_cid'], $x['allow_gid'], $x['deny_cid'], $x['deny_gid'], $recurse, true); $actions_done .= 'permissions,'; if ($notify) { attach_store_item($channel, $observer, $resource); $actions_done .= 'notify,'; } } } if (! $admin_delete && $actions_done) { $sync = attach_export_data($channel, $resource, (($delete) ? true : false)); if ($sync) { Libsync::build_sync_packet($channel_id, ['file' => [$sync]]); } } logger('attach_edit: ' . $actions_done); } if($dnd || $delete) { json_return_and_die([ 'success' => true ]); } goaway($return_path); } }