cancan abilities updated. Added a current_enterprise variable. Fixed a bug with pending orders