permission check in navigation