1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

Fix #86 by altering the default permissions on mkdir.

This commit is contained in:
Starbeamrainbowlabs 2016-08-18 13:07:00 +00:00
parent eaed20d498
commit 5dea574825
3 changed files with 5 additions and 3 deletions

3
build/index.php Normal file → Executable file
View file

@ -3602,6 +3602,7 @@ register_module([
* *
* @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit. * @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit.
*/ */
/* /*
* *
* ___ __ ___ _____ * ___ __ ___ _____
@ -3646,7 +3647,7 @@ register_module([
if(!is_dir(dirname("$env->storage_prefix$env->page.md"))) if(!is_dir(dirname("$env->storage_prefix$env->page.md")))
{ {
// Recursively create the directory if needed // Recursively create the directory if needed
mkdir(dirname("$env->storage_prefix$env->page.md"), null, true); mkdir(dirname("$env->storage_prefix$env->page.md"), 0775, true);
} }
// Read in the new page content // Read in the new page content

2
module_index.json Normal file → Executable file
View file

@ -113,7 +113,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.", "description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
"id": "page-edit", "id": "page-edit",
"lastupdate": 1466582736, "lastupdate": 1471525437,
"optional": false "optional": false
}, },
{ {

3
modules/page-edit.php Normal file → Executable file
View file

@ -106,6 +106,7 @@ register_module([
* *
* @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit. * @apiError UnsufficientPermissionError You don't currently have sufficient permissions to save an edit.
*/ */
/* /*
* *
* ___ __ ___ _____ * ___ __ ___ _____
@ -150,7 +151,7 @@ register_module([
if(!is_dir(dirname("$env->storage_prefix$env->page.md"))) if(!is_dir(dirname("$env->storage_prefix$env->page.md")))
{ {
// Recursively create the directory if needed // Recursively create the directory if needed
mkdir(dirname("$env->storage_prefix$env->page.md"), null, true); mkdir(dirname("$env->storage_prefix$env->page.md"), 0775, true);
} }
// Read in the new page content // Read in the new page content