Fix permission error while import (#6385)
Custom permission should apply while import or else import of doctype with custom roles fails
This commit is contained in:
parent
a26dd436f5
commit
0aee7afb87
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ class Meta(Document):
|
|||
|
||||
def set_custom_permissions(self):
|
||||
'''Reset `permissions` with Custom DocPerm if exists'''
|
||||
if frappe.flags.in_patch or frappe.flags.in_import or frappe.flags.in_install:
|
||||
if frappe.flags.in_patch or frappe.flags.in_install:
|
||||
return
|
||||
|
||||
if not self.istable and self.name not in ('DocType', 'DocField', 'DocPerm',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue