mirror of https://github.com/status-im/codimd.git
Merge pull request #799 from SISheogorath/fix/AnonymousEditTypos
Fix typos for `allowAnonymousEdits`
This commit is contained in:
commit
387afd1791
|
@ -53,7 +53,7 @@ if (config.ldap.tlsca) {
|
||||||
|
|
||||||
// Permission
|
// Permission
|
||||||
config.permission = Permission
|
config.permission = Permission
|
||||||
if (!config.allowAnonymous && !config.allowAnonymousedits) {
|
if (!config.allowAnonymous && !config.allowAnonymousEdits) {
|
||||||
delete config.permission.freely
|
delete config.permission.freely
|
||||||
}
|
}
|
||||||
if (!(config.defaultPermission in config.permission)) {
|
if (!(config.defaultPermission in config.permission)) {
|
||||||
|
|
|
@ -788,7 +788,7 @@ function connection (socket) {
|
||||||
var note = notes[noteId]
|
var note = notes[noteId]
|
||||||
// Only owner can change permission
|
// Only owner can change permission
|
||||||
if (note.owner && note.owner === socket.request.user.id) {
|
if (note.owner && note.owner === socket.request.user.id) {
|
||||||
if (permission === 'freely' && !config.allowAnonymous && !config.allowAnonymousedits) return
|
if (permission === 'freely' && !config.allowAnonymous && !config.allowAnonymousEdits) return
|
||||||
note.permission = permission
|
note.permission = permission
|
||||||
models.Note.update({
|
models.Note.update({
|
||||||
permission: permission
|
permission: permission
|
||||||
|
|
|
@ -59,7 +59,7 @@ function showIndex (req, res, next) {
|
||||||
url: config.serverURL,
|
url: config.serverURL,
|
||||||
useCDN: config.useCDN,
|
useCDN: config.useCDN,
|
||||||
allowAnonymous: config.allowAnonymous,
|
allowAnonymous: config.allowAnonymous,
|
||||||
allowAnonymousEdits: config.allowAnonymousedits,
|
allowAnonymousEdits: config.allowAnonymousEdits,
|
||||||
facebook: config.isFacebookEnable,
|
facebook: config.isFacebookEnable,
|
||||||
twitter: config.isTwitterEnable,
|
twitter: config.isTwitterEnable,
|
||||||
github: config.isGitHubEnable,
|
github: config.isGitHubEnable,
|
||||||
|
@ -94,7 +94,7 @@ function responseHackMD (res, note) {
|
||||||
title: title,
|
title: title,
|
||||||
useCDN: config.useCDN,
|
useCDN: config.useCDN,
|
||||||
allowAnonymous: config.allowAnonymous,
|
allowAnonymous: config.allowAnonymous,
|
||||||
allowAnonymousEdits: config.allowAnonymousedits,
|
allowAnonymousEdits: config.allowAnonymousEdits,
|
||||||
facebook: config.isFacebookEnable,
|
facebook: config.isFacebookEnable,
|
||||||
twitter: config.isTwitterEnable,
|
twitter: config.isTwitterEnable,
|
||||||
github: config.isGitHubEnable,
|
github: config.isGitHubEnable,
|
||||||
|
|
Loading…
Reference in New Issue