Fix Sponge PermissionDescription lookups (#425)

This commit is contained in:
Luck 2017-08-08 10:37:54 +02:00
parent 3951725852
commit 07eb17f5d5
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -83,12 +83,12 @@ public final class SimpleDescription implements LPPermissionDescription {
@Override
public CompletableFuture<Map<SubjectReference, Boolean>> findAssignedSubjects(String id) {
LPSubjectCollection collection = service.getCollection(id);
return (CompletableFuture) collection.getAllWithPermission(id);
return (CompletableFuture) collection.getAllWithPermission(this.id);
}
@Override
public Map<LPSubject, Boolean> getAssignedSubjects(String id) {
LPSubjectCollection collection = service.getCollection(id);
return collection.getLoadedWithPermission(id);
return collection.getLoadedWithPermission(this.id);
}
}