Added support for permissions check
Permissions check in routing