I have a problem with the roles of Sync_gateway
.
My sync_function
throws an missing role
error at requireRole("adminSync");
.
I'm accessing with user admin1 that is configured as it follows:
"name": "admin1",
"all_channels": {},
"passwordhash_bcrypt": "**************",
"explicit_roles": {
"adminSync": 1
},
"rolesSince": {
"adminSync": 1
}
Also I have the role configured as:
{
"name": "adminSync",
"admin_channels": {
"CH_HORAS": 1,
"CH_PERSONAS": 1,
"CH_PROYECTOS": 1
},
"all_channels": {
"CH_HORAS": 1,
"CH_PERSONAS": 1,
"CH_PROYECTOS": 1
}
}
Any idea of this error??
Thanks.