Explorar el Código

[fix] Set user as session user if not mentioned in match conditions

version-14
Nabin Hait hace 9 años
padre
commit
f050cb27e3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      frappe/model/db_query.py

+ 2
- 0
frappe/model/db_query.py Ver fichero

@@ -337,6 +337,8 @@ class DatabaseQuery(object):
self.match_filters = []
self.match_conditions = []
only_if_shared = False
if not self.user:
self.user = frappe.session.user

if not self.tables: self.extract_tables()



Cargando…
Cancelar
Guardar