variable tRPCRoleWeightTester
The function api_role_weight_tester
checks if a provided role has sufficient permissions based on
its weight compared to a required role.
type
🔗
(roles: { required: TServerModuleApiControllerRole; provided: TServerModuleApiControllerRole; }) => boolean