printedparts: badge resolution honors the employee directory mode

At sites running the external HR directory the self-hosted table is
empty, so every kiosk badge fell to the deny policy. The resolver now
branches on employee_directory_mode: selfhosted reads the directory
table by SSO; external queries the HR directory, resolving PayNo
badges by their real PayNo column.
This commit is contained in:
2026-07-17 10:39:12 -04:00
parent 11c8d79ba4
commit 503c0cfcf4
2 changed files with 72 additions and 25 deletions

3
.gitignore vendored
View File

@@ -76,3 +76,6 @@ secrets.yml
*_secrets
credentials.json
scripts/site_imports/wjf/idmap.json
# work-PC publication clone: bundle drop folder for the transfer pipeline
_transfer/