mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 06:38:24 +00:00
refactor: method to get employee contact without permission check
(cherry picked from commit 58cdb9503b)
This commit is contained in:
committed by
Mergify
parent
cb17dbd616
commit
773e56808a
@@ -453,6 +453,10 @@ def get_contact_details(employee: str) -> dict:
|
||||
|
||||
frappe.has_permission("Employee", "read", employee, throw=True)
|
||||
|
||||
return _get_contact_details(employee)
|
||||
|
||||
|
||||
def _get_contact_details(employee: str) -> dict:
|
||||
contact_data = frappe.db.get_value(
|
||||
"Employee",
|
||||
employee,
|
||||
|
||||
Reference in New Issue
Block a user