diff options
author | Dario Ernst | 2018-01-20 15:05:05 +0100 |
---|---|---|
committer | Dario Ernst | 2018-01-20 15:14:56 +0100 |
commit | 6ae4b8bf1369bff8cc50325b66db66659d2718a5 (patch) | |
tree | 4043f8d76cff6834229828bf1e008396f134f6cd /lib/response.js | |
parent | 40d1d757048b1eb51e45d4d29ad987739b478881 (diff) |
Add option to enable `freely` permission in closed instance
Before, closed disallowed guest edits completely, by removing
the `freely` permission. This makes it possible to explicitely bring
back guest-editing, but not guest-note-creation, to closed instances.
Signed-off-by: Dario Ernst <dario@kanojo.de>
Diffstat (limited to 'lib/response.js')
-rw-r--r-- | lib/response.js | 2 |
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, |