Przeglądaj źródła

fix: assume parentfield to be set and valid

(cherry picked from commit 7183efa60d)
version-14
Sagar Vora 2 lat temu
committed by Mergify
rodzic
commit
e28674b129
1 zmienionych plików z 0 dodań i 1 usunięć
  1. +0
    -1
      frappe/permissions.py

+ 0
- 1
frappe/permissions.py Wyświetl plik

@@ -706,7 +706,6 @@ def has_child_table_permission(

if (
child_doc
and child_doc.parentfield
and (permlevel := parent_meta.get_field(child_doc.parentfield).permlevel) > 0
and permlevel not in parent_meta.get_permlevel_access(ptype)
):


Ładowanie…
Anuluj
Zapisz