fix: pass user to has_perm check
This commit is contained in:
parent
9f135e8c1d
commit
b38199a3b3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue