frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
20.38k stars 7.08k forks source link

Incorrect permission for managers -> directs #40555

Open akhashogji opened 6 months ago

akhashogji commented 6 months ago

Information about bug

I have an employee who is the manager of other 7 employees (he's employee id is in the Report To field for all 7). Yet, while checking his permissions using Permitted Documents For User I can only see 4 (including himself). The other 4 are missing. As a workaround, I manually remove and re-add him as the Report To for the missing 4 employees. What's weird is after doing that, now he has access to employees who he doesn't manage (nor is a skip line manager).

This happens with multiple managers. Not sure what's the issue

Module

HR

Version

ERPNext: v14.65.3 (version-14) Frappe Framework: v14.67.1 (version-14) Frappe HR: v14.24.0 (version-14) Payments: v0.0.1 (develop)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

akhashogji commented 6 months ago

Also, the org chart is showing wrong number of "connections" ScreenShot_2024-03-19_23 45