feat: [payroll] 개발서버 슈퍼관리자 급여관리 접근 허용

- 운영서버: 기존 3인(이의찬, 전진선, 김보곤)만 접근 가능 (변경 없음)
- 개발서버/로컬: 슈퍼관리자도 급여관리 전체 접근 가능 (조회+수정)
- 적용 대상: 급여관리, 사업소득자 임금대장, 연봉 정보
This commit is contained in:
김보곤
2026-03-11 20:44:26 +09:00
parent f152e866a1
commit 3fc4c10593
6 changed files with 24 additions and 6 deletions

View File

@@ -17,7 +17,10 @@ public function __construct(
private function canViewSalary(): bool
{
return in_array(auth()->user()->name, self::ALLOWED_SALARY_USERS);
$isAllowedUser = in_array(auth()->user()->name, self::ALLOWED_SALARY_USERS);
$isDevSuperAdmin = ! app()->environment('production') && auth()->user()->isSuperAdmin();
return $isAllowedUser || $isDevSuperAdmin;
}
/**