mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-01 14:07:56 +01:00
Use the correct permission check method when forming tree views
This commit is contained in:
parent
fa83986250
commit
8b97439ffc
@ -32,6 +32,7 @@ import me.lucko.luckperms.common.caching.type.PermissionCache;
|
||||
import me.lucko.luckperms.common.model.User;
|
||||
import me.lucko.luckperms.common.sender.Sender;
|
||||
import me.lucko.luckperms.common.utils.gson.JObject;
|
||||
import me.lucko.luckperms.common.verbose.CheckOrigin;
|
||||
import me.lucko.luckperms.common.web.StandardPastebin;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
@ -149,7 +150,7 @@ public class TreeView {
|
||||
checks = new JObject();
|
||||
for (Map.Entry<Integer, String> node : this.view.getNodeEndings()) {
|
||||
String permission = prefix + node.getValue();
|
||||
checks.add(permission, checker.getPermissionValue(permission).name().toLowerCase());
|
||||
checks.add(permission, checker.getPermissionValue(permission, CheckOrigin.INTERNAL).name().toLowerCase());
|
||||
}
|
||||
} else {
|
||||
checks = null;
|
||||
|
Loading…
Reference in New Issue
Block a user