Adding before filter to protect customers dashboard