permission control: get parent doctype doclist in get permissions

This commit is contained in:
Anand Doshi 2012-12-14 16:23:33 +05:30
parent 0f502112d2
commit b0f6dde7bf

View File

@ -51,7 +51,7 @@ class DocType:
# -------------------------------------------------------------------
def get_permissions(self,doctype):
import webnotes.model.doctype
doclist = webnotes.model.doctype.get(doctype)
doclist = webnotes.model.doctype.get(doctype).get_parent_doclist()
ptype = [{
'role': perm.role,