@@ -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 |