summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorMax Wu2016-12-22 01:07:51 +0800
committerGitHub2016-12-22 01:07:51 +0800
commit8153fa32ed963f3c8b122dd673bb3ab64323e2ab (patch)
treee39ee4a3588f38aabe7222dfb96fb3278caed0f8 /lib/response.js
parent11d6b24561d75ac06809b47cac8bc28c18b7c467 (diff)
parentfdea22615976db6ed29f8b62311b6baf0ca31d13 (diff)
Merge pull request #292 from FlorianRhiem/bugfix-anonymous-typo
Fixed typo: anonmyous
Diffstat (limited to 'lib/response.js')
-rwxr-xr-xlib/response.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/response.js b/lib/response.js
index 3374eaf5..2b38cf25 100755
--- a/lib/response.js
+++ b/lib/response.js
@@ -60,7 +60,7 @@ function showIndex(req, res, next) {
res.render(config.indexpath, {
url: config.serverurl,
useCDN: config.usecdn,
- allowAnonmyous: config.allowanonmyous,
+ allowAnonymous: config.allowanonymous,
facebook: config.facebook,
twitter: config.twitter,
github: config.github,
@@ -93,7 +93,7 @@ function responseHackMD(res, note) {
url: config.serverurl,
title: title,
useCDN: config.usecdn,
- allowAnonmyous: config.allowanonmyous,
+ allowAnonymous: config.allowanonymous,
facebook: config.facebook,
twitter: config.twitter,
github: config.github,
@@ -108,7 +108,7 @@ function newNote(req, res, next) {
var owner = null;
if (req.isAuthenticated()) {
owner = req.user.id;
- } else if (!config.allowanonmyous) {
+ } else if (!config.allowanonymous) {
return response.errorForbidden(res);
}
models.Note.create({