Added permission checking for the navigation