JC: added index partial and deleted definition of has_.._right? from application_controller.