How to modify existing object structure, say inside a config.js file which I currently have:
userRoles: {
'user1@hotmail.co.uk': ['0'],
'user2@hotmail.co.uk': ['1'],
:
},
roles: {
0: {
name: 'SUPERUSER',
areas: {
home: {
hasAccess: true,
dashboards: {
hasAccess: true,
t4: {
hasAccess: true,
checkin: {
hasAccess: true,
accessAll: true
},
immigration: {
hasAccess: true,
accessAll: true
}
}
},
tools: {
hasAccess: true,
'data-explorer': {
hasAccess: true,
accessAll: true
},
'forecast-uploader': {
hasAccess: true,
accessAll: true
}
},
reports: {
hasAccess: true,
accessAll: true
}
}
}
},
1: { etc }
So that instead it uses redis (or mongodb) for persistence instead of hardcoding as above?