check_permission supports frex API right now