// Fix member roles on submission database
try {
if( null != submissionDesign ) {
CouchDb submissionDb = submissionDesign.getDatabase();
CouchDbSecurityDocument secDoc = submissionDb.getSecurityDocument();
boolean updateRequired = false;
// Administrator role
{
String adminRole = atlasName + "_administrator";
if( false == secDoc.getAdminRoles().contains(adminRole) ) {
secDoc.addAdminRole(adminRole);
updateRequired = true;
}
}
// Vetter role
{
String vetterRole = atlasName + "_vetter";
if( false == secDoc.getMemberRoles().contains(vetterRole) ) {
secDoc.addMemberRole(vetterRole);
updateRequired = true;
}
}
if( updateRequired ){