marketcontroller check allow order function