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 #1861

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

ruchamahabal
Copy link
Member

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.

@ruchamahabal ruchamahabal merged commit a59e1dd into frappe:develop Jun 7, 2024
7 checks passed
mergify bot pushed a commit that referenced this pull request Jun 7, 2024
… avoid permission issues (#1861)

(cherry picked from commit a59e1dd)
ruchamahabal added a commit that referenced this pull request Jun 7, 2024
… avoid permission issues (backport #1861) (#1862)

(cherry picked from commit a59e1dd)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
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))
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.

None yet

1 participant