make the storage permissions tweakable for hosted environments where they may require tweaking.

This commit is contained in:
friendica
2013-11-04 19:21:09 -08:00
parent 1c5e2b8645
commit f89e7b2bd5
2 changed files with 17 additions and 2 deletions

View File

@@ -532,7 +532,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) {
$basepath = 'store/' . $channel['channel_address'];
if(! is_dir($basepath))
@mkdir($basepath,0700,true);
@mkdir($basepath,STORAGE_DEFAULT_PERMISSIONS,true);
if(! perm_is_allowed($channel_id, get_observer_hash(),'write_storage')) {
@@ -619,7 +619,7 @@ function attach_mkdir($channel,$observer_hash,$arr = null) {
);
if($r) {
if(mkdir($path,0700)) {
if(mkdir($path,STORAGE_DEFAULT_PERMISSIONS)) {
$ret['success'] = true;
$ret['data'] = $arr;
}