mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 12:08:26 +00:00
feat: add employee name to session user
This commit is contained in:
@@ -84,3 +84,4 @@ def bootinfo(bootinfo):
|
||||
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name")
|
||||
if employee:
|
||||
bootinfo["user"]["employee"] = employee
|
||||
frappe.session.data.employee = employee
|
||||
|
||||
Reference in New Issue
Block a user