mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
@@ -78,6 +78,6 @@ def update_page_info(bootinfo):
|
|||||||
def bootinfo(bootinfo):
|
def bootinfo(bootinfo):
|
||||||
if bootinfo.get("user") and bootinfo["user"].get("name"):
|
if bootinfo.get("user") and bootinfo["user"].get("name"):
|
||||||
bootinfo["user"]["employee"] = ""
|
bootinfo["user"]["employee"] = ""
|
||||||
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name", cache=True)
|
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name")
|
||||||
if employee:
|
if employee:
|
||||||
bootinfo["user"]["employee"] = employee
|
bootinfo["user"]["employee"] = employee
|
||||||
|
|||||||
Reference in New Issue
Block a user