Skip to content

Commit de30ebd

Browse files
committed
fix: get_allowed_fieldnames_for_doctype on plain child-doctype support
1 parent 4a04f0a commit de30ebd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frappe_graphql/utils/permissions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def get_allowed_fieldnames_for_doctype(doctype: str, parent_doctype: str = None)
2929

3030

3131
def _get_permlevel_read_access(meta: Meta):
32+
if meta.istable:
33+
return [0]
34+
3235
ptype = "read"
3336
_has_access_to = []
3437
roles = frappe.get_roles()

0 commit comments

Comments
 (0)