mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user