From 49d4dff9d35c79d62811c6df4fdccb20803e6583 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 30 Jul 2007 21:41:41 +0200 Subject: [PATCH] [svn r12802] Updated default file permissions (using database security parameter) --- main/newscorm/presentation.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/newscorm/presentation.class.php b/main/newscorm/presentation.class.php index a9047c845d..bbc596ce04 100644 --- a/main/newscorm/presentation.class.php +++ b/main/newscorm/presentation.class.php @@ -59,7 +59,9 @@ class presentation extends learnpath { move_uploaded_file($file['tmp_name'],$base_work_dir.'/'.$file['name']); $file = $base_work_dir.'/'.$file['name']; - chmod($file,0777); + $perm = api_get_setting('permissions_for_new_files'); + $perm = octdec(!empty($perm)?$perm:'0550'); + chmod($file,$perm); /*