From ad76337fa3ddcca577a7b0f0a039e4d5f3b2a0bd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 10 May 2012 12:40:16 +0530 Subject: [PATCH] if not permlevel set 0 --- py/core/doctype/doctype/doctype.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/core/doctype/doctype/doctype.py b/py/core/doctype/doctype/doctype.py index ff3e766f3c..44d1a47581 100644 --- a/py/core/doctype/doctype/doctype.py +++ b/py/core/doctype/doctype/doctype.py @@ -75,6 +75,7 @@ class DocType: fieldnames = {} illegal = ['.', ',', ' ', '-', '&', '%', '=', '"', "'", '*', '$'] for d in self.doclist: + if not d.permlevel: d.permlevel = 0 if d.parent and d.fieldtype and d.parent == self.doc.name: # check if not double if d.fieldname: