RP-Kit / RPKit

RPKit plugin suite
Apache License 2.0
21 stars 12 forks source link

Fix permissions checks for profiles & characters #530

Closed renbinden closed 3 years ago

renbinden commented 3 years ago

Currently the last group that's assigned determines the return value for hasPermission on profiles and characters. This happens even if the permission has not been set. hasPermission for a group should return an optional boolean which returns null if it has not been set, allowing hasPermission to only assign them for the highest priority group with the permission set, as opposed to the only the highest priority group. This would fix prefixes where one group has it, and the other does not have a set value for it.