fix: add parrenttype in query
This commit is contained in:
parent
b83e0b9abd
commit
90da644834
1 changed files with 2 additions and 1 deletions
|
|
@ -989,7 +989,8 @@ def clear_permissions_cache(doctype):
|
|||
`tabHas Role`,
|
||||
`tabDocPerm`
|
||||
WHERE `tabDocPerm`.`parent` = %s
|
||||
AND `tabDocPerm`.`role` = `tabHas Role`.`role`
|
||||
AND `tabDocPerm`.`role` = `tabHas Role`.`role`
|
||||
AND `tabHas Role`.`parenttype` = 'User'
|
||||
""", doctype):
|
||||
frappe.clear_cache(user=user)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue