delving/culture-hub — pull request #428 by manuelbernhardt (2012-01-26 14:38:39+00:00)
Title: View rendering

To run:

var tgt = function(value) {
if(value == 0) return "view"
if(value == 10) return "modify"
if(value == 30) return "cms"
if(value == 42) return "own"
}
db.Groups.find().forEach(function(it) { it.grantType = tgt(it.grantType.value); db.Groups.save(it); })