Fix some permission bugs in customer index.