summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-01-20 18:56:09 +0100
committerGitHub2018-01-20 18:56:09 +0100
commitb7e227e9d587af7268e126fca1db60ad3e1c29f9 (patch)
tree9596ac963ec1eeea3ee1370ec5963ef4d920568d /lib/response.js
parent2eb30782d558a6e2652ba37b090164369a23120b (diff)
parent6ae4b8bf1369bff8cc50325b66db66659d2718a5 (diff)
Merge pull request #690 from Nebukadneza/add_allow_anonymous_edits
Add option to enable `freely` permission in closed instance
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index 9f3d5a44..6c64d245 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -60,6 +60,7 @@ function showIndex (req, res, next) {
url: config.serverurl,
useCDN: config.usecdn,
allowAnonymous: config.allowanonymous,
+ allowAnonymousEdits: config.allowanonymousedits,
facebook: config.isFacebookEnable,
twitter: config.isTwitterEnable,
github: config.isGitHubEnable,
@@ -93,6 +94,7 @@ function responseHackMD (res, note) {
title: title,
useCDN: config.usecdn,
allowAnonymous: config.allowanonymous,
+ allowAnonymousEdits: config.allowanonymousedits,
facebook: config.isFacebookEnable,
twitter: config.isTwitterEnable,
github: config.isGitHubEnable,