fix: specify valid rights for share query
This commit is contained in:
parent
e6063d64ca
commit
6327f4ca8a
1 changed files with 1 additions and 1 deletions
|
|
@ -705,7 +705,7 @@ class Meta(Document):
|
|||
)
|
||||
|
||||
if 0 not in permlevel_access and permission_type in ("read", "select"):
|
||||
if frappe.share.get_shared(self.name, user, rights=[permission_type], limit=1):
|
||||
if frappe.share.get_shared(self.name, user, rights=["read"], limit=1):
|
||||
permlevel_access.add(0)
|
||||
|
||||
permitted_fieldnames.extend(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue