minor release

yep, it's time to have a unit test :D
This commit is contained in:
lesion
2022-03-04 16:06:37 +01:00
parent e5014d7e16
commit a9717e23dc
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ module.exports = {
res.locals.settings = cloneDeep(settingsController.settings)
if (res.locals.settings.smtp && res.locals.settings.smtp.auth) {
if (res.locals.user.is_admin) {
if (res.locals.user && res.locals.user.is_admin) {
delete res.locals.settings.smtp.auth.pass
} else {
delete res.locals.settings.smtp