Fix ClassCastException with MongoDB user search

This commit is contained in:
Luck
2017-03-17 20:54:40 +00:00
Unverified
parent ac4bd418f3
commit 965ff04bcc
@@ -335,7 +335,7 @@ public class MongoDBBacking extends AbstractBacking {
while (cursor.hasNext()) {
Document d = cursor.next();
UUID holder = UUID.fromString(d.getString("_id"));
UUID holder = d.get("_id", UUID.class);
Map<String, Boolean> perms = revert((Map<String, Boolean>) d.get("perms"));
for (Map.Entry<String, Boolean> e : perms.entrySet()) {