Fixes to routing
Permissions working example