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

Data Import > Employee > Update Existing Records also adds entries to "User Permission List" #2017

Open
1 task done
virajkanwade opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@virajkanwade
Copy link

Information about bug

frappe/frappe#27240

Not sure if this belongs to frappe or under HRMS.

I am using production docker image with version_15.

I have some employees who have access across subsidiaries. I deleted entries from "User Permission List" to ensure they can access employees across companies.

When I run data import to update "reports to", "leave approver" and "expense approver" for employees, it adds entries to the User Permission List and results in errors :
"Not allowed for Employee: XYZ
User [email protected] does not have access to this document: Employee - XYZ"

Why is this happening and how do I disable it?

Thanks

Module

HR

Version

version_15 branch docker image for production mode.

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@virajkanwade virajkanwade added the bug Something isn't working label Jul 30, 2024
@virajkanwade
Copy link
Author

Seems to be related to HRMS.

  • Delete all entries for my user in "User Permission List".
  • Select an employee from different company (subsidiary) in the HR module.
  • Add my user as the leave or expense approver.
  • This adds the entries to restrict my user to my company.
  • I can no longer access employees from the other companies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant