fixed mods editing own albums also disable them

This commit is contained in:
Bobby Wibowo 2020-11-01 16:38:36 +07:00
parent 6eec4dbfeb
commit f41e325273
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -323,7 +323,7 @@ self.edit = async (req, res, next) => {
: ''
}
if (ismoderator) {
if (ismoderator && typeof req.body.enabled !== 'undefined') {
update.enabled = Boolean(req.body.enabled)
}