refactor: fold permission_layers into permission as a union
Replace the internal permission_layers config field with a union on permission itself (single object or array of layered configs). Add ConfigPermission.toLayers to normalise at consumption sites. Schema has no decode transform, so user files round-trip through Config.update / updateGlobal without their permission section being rewritten into array form.
A
Aiden Cline committed
d4e3106fcadaa2a9986cc9dfe6d8100d9dd1ed0c
Parent: d0c602b