minor release
yep, it's time to have a unit test :D
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gancio",
|
||||
"version": "1.4.1",
|
||||
"version": "1.4.2",
|
||||
"description": "A shared agenda for local communities",
|
||||
"author": "lesion",
|
||||
"scripts": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user