Added cancan check and inherited resources to attendance controller