Fix ClassCastException with MongoDB user search
This commit is contained in:
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user