story: Added view of own unlisted stories.
the build was successful

This commit is contained in:
2018-10-22 19:00:27 +02:00
parent d2194347fd
commit 824a8dae23
5 changed files with 39 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ const config = require("../config")
module.exports = (req, res, next) => {
if (res.marko) {
res.markoAsync = async(template, input) => {
const locals = Object.assign((res.locals || {}), input)
const locals = Object.assign({}, (res.locals || {}), input)
try {
for (const key in locals) {
@@ -12,7 +12,7 @@ module.exports = (req, res, next) => {
locals[key] = await value
}
}
if (locals.user.permissions != null) {
locals.user.permissions = await locals.user.permissions
}