if not permlevel set 0

This commit is contained in:
Nabin Hait 2012-05-10 12:40:16 +05:30
parent 995e7573ab
commit ad76337fa3

View file

@ -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: