summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Rhiem2016-12-21 14:36:54 +0100
committerFlorian Rhiem2016-12-21 14:36:54 +0100
commitfdea22615976db6ed29f8b62311b6baf0ca31d13 (patch)
treee39ee4a3588f38aabe7222dfb96fb3278caed0f8 /lib
parent11d6b24561d75ac06809b47cac8bc28c18b7c467 (diff)
Fixed typo: anonmyous
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js4
-rw-r--r--lib/realtime.js4
-rwxr-xr-xlib/response.js6
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/config.js b/lib/config.js
index 2d977f51..9e8aa337 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -19,7 +19,7 @@ var urladdport = process.env.HMD_URL_ADDPORT ? (process.env.HMD_URL_ADDPORT ===
var usecdn = process.env.HMD_USECDN ? (process.env.HMD_USECDN === 'true') : ((typeof config.usecdn === 'boolean') ? config.usecdn : true);
-var allowanonmyous = process.env.HMD_ALLOW_ANONMYOUS ? (process.env.HMD_ALLOW_ANONMYOUS === 'true') : ((typeof config.allowanonmyous === 'boolean') ? config.allowanonmyous : true);
+var allowanonymous = process.env.HMD_ALLOW_ANONYMOUS ? (process.env.HMD_ALLOW_ANONYMOUS === 'true') : ((typeof config.allowanonymous === 'boolean') ? config.allowanonymous : true);
var allowfreeurl = process.env.HMD_ALLOW_FREEURL ? (process.env.HMD_ALLOW_FREEURL === 'true') : !!config.allowfreeurl;
@@ -129,7 +129,7 @@ module.exports = {
usessl: usessl,
serverurl: getserverurl(),
usecdn: usecdn,
- allowanonmyous: allowanonmyous,
+ allowanonymous: allowanonymous,
allowfreeurl: allowfreeurl,
db: db,
sslkeypath: path.join(cwd, sslkeypath),
diff --git a/lib/realtime.js b/lib/realtime.js
index 64b0044f..c243ffc1 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -767,7 +767,7 @@ function connection(socket) {
var note = notes[noteId];
//Only owner can change permission
if (note.owner && note.owner == socket.request.user.id) {
- if (permission == 'freely' && !config.allowanonmyous) return;
+ if (permission == 'freely' && !config.allowanonymous) return;
note.permission = permission;
models.Note.update({
permission: permission
@@ -915,4 +915,4 @@ function connection(socket) {
});
}
-module.exports = realtime; \ No newline at end of file
+module.exports = realtime;
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({