From c3c3eed46ef2df892f50e40462d4eae92736c93e Mon Sep 17 00:00:00 2001 From: zzdrojewskipaw Date: Tue, 26 Aug 2025 21:03:40 +0200 Subject: [PATCH] =?UTF-8?q?zmiana=20uprawnie=C5=84=20do=20pliku=20CSV=20rw?= =?UTF-8?q?-rw-r--?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- REST/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/REST/functions.php b/REST/functions.php index 790a59ed..1da288ac 100644 --- a/REST/functions.php +++ b/REST/functions.php @@ -576,5 +576,6 @@ function exportToCSVFile($res, $fullpath, array $headers = null, $delimiter = '; } fclose($fp); - return ['ok'=>true, 'path'=>$fullpath, 'rows'=>$count, 'error'=>null]; + $chmod_ok = @chmod($fullpath, 0664); + return ['ok'=>true, 'path'=>$fullpath, 'rows'=>$count, 'chmod'=>$chmod_ok, 'error'=>null]; } \ No newline at end of file