Fix Sponge PermissionDescription lookups (#425)
This commit is contained in:
parent
3951725852
commit
07eb17f5d5
@ -83,12 +83,12 @@ public final class SimpleDescription implements LPPermissionDescription {
|
|||||||
@Override
|
@Override
|
||||||
public CompletableFuture<Map<SubjectReference, Boolean>> findAssignedSubjects(String id) {
|
public CompletableFuture<Map<SubjectReference, Boolean>> findAssignedSubjects(String id) {
|
||||||
LPSubjectCollection collection = service.getCollection(id);
|
LPSubjectCollection collection = service.getCollection(id);
|
||||||
return (CompletableFuture) collection.getAllWithPermission(id);
|
return (CompletableFuture) collection.getAllWithPermission(this.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<LPSubject, Boolean> getAssignedSubjects(String id) {
|
public Map<LPSubject, Boolean> getAssignedSubjects(String id) {
|
||||||
LPSubjectCollection collection = service.getCollection(id);
|
LPSubjectCollection collection = service.getCollection(id);
|
||||||
return collection.getLoadedWithPermission(id);
|
return collection.getLoadedWithPermission(this.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user