fix: pass on user param
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
6d79d703a0
commit
a2fdff9006
1 changed files with 1 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ def has_permission(doc, ptype=None, user=None, debug=False):
|
|||
if (
|
||||
user != "Guest"
|
||||
and ptype
|
||||
and frappe.share.get_shared("File", filters=[["share_name", "=", doc.name]], rights=[ptype])
|
||||
and frappe.share.get_shared("File", filters=[["share_name", "=", doc.name]], rights=[ptype], user=user)
|
||||
):
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue