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: check if approver is set before sharing doc (backport #590) #605

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 16, 2023

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


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

While creating a leave application, if the employee doesn't have a leave approver set, the document is shared with the leave applicant himself by the share API as the approver is `None`.

The Applicant ends up getting submit permission for leave application accidentally but cannot submit it as the "status" field is read-only and has perm level set.

Video:
https://github.com/frappe/hrms/assets/76736615/580b6ceb-9881-4801-b422-9e428ccf15f3

(cherry picked from commit eec8f43)
@codecov-commenter
Copy link

Codecov Report

Merging #605 (a56ce87) into version-14-hotfix (f42fb4f) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           version-14-hotfix     #605      +/-   ##
=====================================================
+ Coverage              72.84%   72.87%   +0.02%     
=====================================================
  Files                    191      191              
  Lines                   9898     9897       -1     
=====================================================
+ Hits                    7210     7212       +2     
+ Misses                  2688     2685       -3     
Impacted Files Coverage Δ
hrms/hr/doctype/attendance/attendance.py 70.71% <ø> (+0.29%) ⬆️
...ms/hr/doctype/employee_checkin/employee_checkin.py 93.79% <ø> (-0.05%) ⬇️
hrms/hr/utils.py 79.44% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes

@ruchamahabal ruchamahabal merged commit 1902872 into version-14-hotfix Jun 16, 2023
6 checks passed
@mergify mergify bot deleted the mergify/bp/version-14-hotfix/pr-590 branch June 16, 2023 08:14
frappe-pr-bot pushed a commit that referenced this pull request Jun 20, 2023
## [14.4.4](v14.4.3...v14.4.4) (2023-06-20)

### Bug Fixes

* check if approver is set before sharing doc (backport [#590](#590)) ([#605](#605)) ([1902872](1902872))
* cost center mapping in Bank Entry ([d3a5a6a](d3a5a6a))
* translate strings in `job_applicant_dashboard` (backport [#594](#594)) ([#596](#596)) ([903e961](903e961))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.4.4 🎉

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.

4 participants