Class: HrLite::Admin::BaseController

Inherits:
HrLite::ApplicationController show all
Defined in:
app/controllers/hr_lite/admin/base_controller.rb

Overview

Day-to-day operations: the overview board, team attendance, leave decisions, balance adjustments.

The gate is now "can you decide somebody's leave, or fix somebody's attendance" rather than "are you an admin". That is what admits a MANAGER to these screens for the first time — at team scope, which every controller below then enforces row by row. Reaching the screen and reaching a particular person's row are two separate questions, and conflating them is precisely the bug this replaces.