mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-12 08:19:07 +00:00
fixed mods editing own albums also disable them
This commit is contained in:
parent
6eec4dbfeb
commit
f41e325273
@ -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)
|
update.enabled = Boolean(req.body.enabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user