Improve the way meta lookups are caught & reported to the verbose handler
This commit is contained in:
+1
-1
@@ -311,7 +311,7 @@ public abstract class CalculatedSubject implements LPSubject {
|
||||
@Override
|
||||
public Optional<String> getOption(ImmutableContextSet contexts, String key) {
|
||||
Contexts lookupContexts = Contexts.of(contexts, Contexts.global().getSettings());
|
||||
return Optional.ofNullable(this.cachedData.getMetaData(lookupContexts).getMetaValue(key, MetaCheckEvent.Origin.PLATFORM_API));
|
||||
return Optional.ofNullable(this.cachedData.getMetaData(lookupContexts).getMeta(MetaCheckEvent.Origin.PLATFORM_API).get(key));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -153,7 +153,7 @@ public abstract class HolderSubject<T extends PermissionHolder> implements LPSub
|
||||
}
|
||||
}
|
||||
|
||||
String val = data.getMetaValue(s, MetaCheckEvent.Origin.PLATFORM_API);
|
||||
String val = data.getMeta(MetaCheckEvent.Origin.PLATFORM_API).get(s);
|
||||
if (val != null) {
|
||||
return Optional.of(val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user