Sep 16 - Optimize code, part 1

This commit is contained in:
2026-09-16 10:52:59 -04:00
parent 4212726611
commit 7626287344
22 changed files with 587 additions and 96 deletions
+5
View File
@@ -17,6 +17,8 @@ from models.qrcode import QRCode
from models.user import User
from logger_handler import log_user_activity, log_database_operations
from utils.helpers import (
PAYROLL_AREA_ROLES,
restrict_blueprint_to_roles,
admin_required,
has_admin_privileges,
has_staff_level_access,
@@ -25,6 +27,9 @@ from utils.helpers import (
bp = Blueprint('employees', __name__)
# Employee records (sidebar: admin, payroll, accounting) — checked for every route.
restrict_blueprint_to_roles(bp, PAYROLL_AREA_ROLES)
@bp.route('/employees', endpoint='employees')