[Sponge] Unsetting permissions with/without context flags
Closed this issue ยท 4 comments
Issue: when unsetting a permission node with a context, if you unset without specifying said context it will always return positive (meaning it will always say it successfully unset), even though it cannot unset it because of the missing context. Only seems to happen with JSON storage, can't reproduce on a default Luckperms installation.
Example:
There, updated the ticket with the right screenshot. Unsetting a node under global, when it's been cached, results into a false positive when the node had been set under a context.
I can't reproduce using the latest version.
> lp creategroup test
[17:36:41] [pool-6-thread-1/INFO]: [LP] test was successfully created.
> lp group test permission set test.permission true testserver
[17:37:00] [pool-6-thread-1/INFO]: [LP] Set test.permission to true for test in context server=testserver.
> lp group test permission unset test.permission
[17:37:16] [pool-6-thread-1/INFO]: [LP] test does not have test.permission set in context global.
>