Closed abn closed 11 years ago
This should now be complete
Script to update the database:
db.users.find().forEach( function (x) {
var roles = [];
for (k in x.endorsements) {
roles.push(k);
}
x.roles = roles;
db.users.save(x);
} );
db.users.update({ "endorsements" : { $exists : true } }, { $unset: { "endorsements": "" }}, {"multi": true});
Flask-Principals have issues with monoengine-sessions, might do a custom role mapping.