Cover photo removal for groups, #3832

This commit is contained in:
Julian Lam
2015-11-06 10:50:14 -05:00
parent 92be63ebe6
commit 2830538835
4 changed files with 33 additions and 2 deletions

View File

@@ -181,6 +181,10 @@ module.exports = function(Groups) {
});
};
Groups.removeCover = function(data, callback) {
db.deleteObjectField('group:' + data.groupName, 'cover:url', callback);
};
function updatePrivacy(groupName, newValue, callback) {
if (!newValue) {
return callback();