Demo: fix

This commit is contained in:
2019-07-24 18:40:23 +02:00
parent 90c5362a57
commit 0a3a45107a
+1 -1
View File
@@ -151,7 +151,7 @@ const authorization = {
entry.type = found.type;
if (! entry.orclgender || entry.orclgender === "")
entry.orclgender = found.orclgender;
return fillSession (req, entry, entry.roles.length > 0 ? common.arrayToHash(entry.roles) : {user:true}, returnSession);
return fillSession (req, entry, entry.roles.length > 0 ? entry.roles : {user:true}, returnSession);
}
// Otherwise create standard user entry