Skip to content

fix: restrict API for pwa to fetch current logged-in employee only (backport #4207)#4214

Merged
asmitahase merged 4 commits intoversion-16-hotfixfrom
mergify/bp/version-16-hotfix/pr-4207
Mar 11, 2026
Merged

fix: restrict API for pwa to fetch current logged-in employee only (backport #4207)#4214
asmitahase merged 4 commits intoversion-16-hotfixfrom
mergify/bp/version-16-hotfix/pr-4207

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Mar 11, 2026

Summary by CodeRabbit

  • Refactor
    • Centralized employee context resolution across attendance, shifts, leave balance, expense claims, and advance features
    • API endpoints now automatically determine the current employee instead of requiring explicit parameters from frontend requests
    • Enhanced consistency and maintainability of employee-scoped data retrieval

This is an automatic backport of pull request #4207 done by [Mergify](https://mergify.com).

…_employee_advance_balance, get_attendance_calendar_events

(cherry picked from commit 6791d95)
(cherry picked from commit 1848d34)
@asmitahase asmitahase merged commit 3f16429 into version-16-hotfix Mar 11, 2026
8 checks passed
@asmitahase asmitahase deleted the mergify/bp/version-16-hotfix/pr-4207 branch March 11, 2026 12:00
@frappe-pr-bot
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 16.4.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants