Node.js based forum software built for the modern web
only call updatevisibility if hidden is passed in
barisusaklif6d025bc3fde
diff --git a/src/groups/update.js b/src/groups/update.jsindex 4c416f156b..d176167f7a 100644--- a/src/groups/update.js+++ b/src/groups/update.js@@ -46,7 +46,13 @@ module.exports = function(Groups) {async.series([async.apply(updatePrivacy, groupName, values.private),- async.apply(updateVisibility, groupName, values.hidden),+ function(next) {+ if (values.hasOwnProperty('hidden')) {+ updateVisibility(groupName, values.hidden, next);+ } else {+ next();+ }+ },async.apply(db.setObject, 'group:' + groupName, payload),async.apply(renameGroup, groupName, values.name)], function(err) {