permission control: get parent doctype doclist in get permissions
This commit is contained in:
parent
0f502112d2
commit
b0f6dde7bf
@ -51,7 +51,7 @@ class DocType:
|
|||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
def get_permissions(self,doctype):
|
def get_permissions(self,doctype):
|
||||||
import webnotes.model.doctype
|
import webnotes.model.doctype
|
||||||
doclist = webnotes.model.doctype.get(doctype)
|
doclist = webnotes.model.doctype.get(doctype).get_parent_doclist()
|
||||||
|
|
||||||
ptype = [{
|
ptype = [{
|
||||||
'role': perm.role,
|
'role': perm.role,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user