[fix] allowed jinja functions
This commit is contained in:
parent
e33a4f914a
commit
0d64c0a335
1 changed files with 2 additions and 2 deletions
|
|
@ -68,11 +68,11 @@ def get_allowed_functions_for_jenv():
|
|||
"get_list": frappe.get_list,
|
||||
"get_all": frappe.get_all,
|
||||
"utils": datautils,
|
||||
"user": hasattr(frappe.local, "session") and frappe.local.session.user or "Guest",
|
||||
"user": getattr(frappe.local, "session", None) and frappe.local.session.user or "Guest",
|
||||
"date_format": frappe.db.get_default("date_format") or "yyyy-mm-dd",
|
||||
"get_fullname": frappe.utils.get_fullname,
|
||||
"get_gravatar": frappe.utils.get_gravatar,
|
||||
"full_name": hasattr(frappe.local, "session") and frappe.local.session.data.full_name or "Guest",
|
||||
"full_name": getattr(frappe.local, "session", None) and frappe.local.session.data.full_name or "Guest",
|
||||
"render_template": frappe.render_template
|
||||
},
|
||||
"autodoc": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue