From 14ef6c72993e4d00db56a22771bcb4c2b7d9c206 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Fri, 27 Sep 2013 15:49:22 -0500 Subject: [PATCH] Fixed permission issue --- app/models/Entities/Image.php | 1 + app/models/Entities/Track.php | 1 + spa.pony.fm.iml | 3 +++ 3 files changed, 5 insertions(+) diff --git a/app/models/Entities/Image.php b/app/models/Entities/Image.php index 2ffb3adc..60cb483b 100644 --- a/app/models/Entities/Image.php +++ b/app/models/Entities/Image.php @@ -92,6 +92,7 @@ public function ensureDirectoryExists() { $destination = $this->getDirectory(); + umask(0); if (!is_dir($destination)) mkdir($destination, 777, true); diff --git a/app/models/Entities/Track.php b/app/models/Entities/Track.php index c2e3aca7..d0eeb4ec 100644 --- a/app/models/Entities/Track.php +++ b/app/models/Entities/Track.php @@ -349,6 +349,7 @@ public function ensureDirectoryExists() { $destination = $this->getDirectory(); + umask(0); if (!is_dir($destination)) mkdir($destination, 777); diff --git a/spa.pony.fm.iml b/spa.pony.fm.iml index 6ff7b7ed..a1427afa 100644 --- a/spa.pony.fm.iml +++ b/spa.pony.fm.iml @@ -27,6 +27,7 @@ + @@ -75,6 +76,7 @@ + @@ -115,6 +117,7 @@ +