fix: pass user to has_perm check

This commit is contained in:
Ankush Menat 2024-01-11 12:34:15 +05:30
parent 9f135e8c1d
commit b38199a3b3

View file

@ -526,6 +526,7 @@ class DatabaseQuery:
ptype=ptype,
parent_doctype=parent_doctype or self.doctype,
throw=True,
user=self.user,
)
self.permission_map[doctype] = ptype