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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user