summaryrefslogtreecommitdiffstats
path: root/server/richer-editor-setting-helper.js
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-08-10 00:50:55 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-08-10 00:50:55 -0400
commit77b5244723db4602077c362843833b539c6a88fd (patch)
tree3585a8379d4184c8fd86209e850f98327192a596 /server/richer-editor-setting-helper.js
parentaf560bc9b4dad76f751d159ac83ef6a3d320b553 (diff)
downloadwekan-77b5244723db4602077c362843833b539c6a88fd.tar.gz
wekan-77b5244723db4602077c362843833b539c6a88fd.tar.bz2
wekan-77b5244723db4602077c362843833b539c6a88fd.zip
Bugfix: 2560, 2604 - enable mixed mode mongodb attachment and filesystem attachment while reading
Diffstat (limited to 'server/richer-editor-setting-helper.js')
-rw-r--r--server/richer-editor-setting-helper.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/richer-editor-setting-helper.js b/server/richer-editor-setting-helper.js
new file mode 100644
index 00000000..967d034e
--- /dev/null
+++ b/server/richer-editor-setting-helper.js
@@ -0,0 +1,6 @@
+Meteor.startup(() => {
+ const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR;
+ if (RCCE) {
+ Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false';
+ }
+});