Fix ClassCastException with MongoDB user search

This commit is contained in:
Luck 2017-03-17 20:54:40 +00:00
parent ac4bd418f3
commit 965ff04bcc
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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()) {