Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PWA): fetch HR Settings from API instead of documentResource to avoid permission issues (backport #1861) #1862

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 7, 2024

Attendance feature flags for checkin were being fetched from HR Settings using documentResource. get_doc is permission sensitive so if the employee's permissions for reading HR Settings is removed, the checkin button is not visible in the mobile app even if of mobile checkins are enabled.


This is an automatic backport of pull request #1861 done by Mergify.

… avoid permission issues (#1861)

(cherry picked from commit a59e1dd)
@mergify mergify bot requested a review from ruchamahabal as a code owner June 7, 2024 09:31
@ruchamahabal ruchamahabal merged commit 883e0ea into version-15-hotfix Jun 7, 2024
8 checks passed
@mergify mergify bot deleted the mergify/bp/version-15-hotfix/pr-1861 branch June 7, 2024 09:50
frappe-pr-bot pushed a commit that referenced this pull request Jun 7, 2024
## [15.22.1](v15.22.0...v15.22.1) (2024-06-07)

### Bug Fixes

* avoid rejected leave application on leave check (backport [#1848](#1848)) ([#1850](#1850)) ([4a11d98](4a11d98))
* don't overwrite leave approver while renderingleave summary dashboard ([841a1dc](841a1dc))
* **PWA:** fetch HR Settings from API instead of `documentResource` to avoid permission issues (backport [#1861](#1861)) ([#1862](#1862)) ([883e0ea](883e0ea))
* **PWA:** strip html tags in holiday descriptions (backport [#1829](#1829)) ([#1830](#1830)) ([abaf45c](abaf45c))
* **UX:** link employee & department doc in the error message for missing leave approver ([2ba079b](2ba079b))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 15.22.1 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants