Recursively retrieves all authorized full paths for a given route.
This function checks if the userId has access to the given route based on locationData. If access is allowed, it collects all available paths (including nested child routes).
userId
route
locationData
The route object containing path and children.
The ID of the user requesting access.
Additional location-based authorization data.
Optional
Accumulated list of authorized paths.
Recursively retrieves all authorized full paths for a given route.
This function checks if the
userIdhas access to the givenroutebased onlocationData. If access is allowed, it collects all available paths (including nested child routes).