fix(check_field_permissions): allow if no permissions defined
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
1ba9c14cd5
commit
07e8c987cb
1 changed files with 5 additions and 0 deletions
|
|
@ -699,6 +699,11 @@ class Engine:
|
|||
if not self.apply_permissions:
|
||||
return
|
||||
|
||||
# Skip field permission check if doctype has no permissions defined
|
||||
meta = frappe.get_meta(doctype)
|
||||
if not meta.get_permissions(parenttype=parent_doctype):
|
||||
return
|
||||
|
||||
permission_type = self.get_permission_type(doctype)
|
||||
permitted_fields = get_permitted_fields(
|
||||
doctype=doctype,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue