fixes permitted check when pending is None