Add get_permitted_documents function
This commit is contained in:
parent
45911faa23
commit
432d22ba76
1 changed files with 5 additions and 1 deletions
|
|
@ -103,4 +103,8 @@ def get_applicable_for_doctype_list(doctype, txt, searchfield, start, page_len,
|
|||
for doctype in linked_doctypes[start:page_len]:
|
||||
return_list.append([doctype])
|
||||
|
||||
return return_list
|
||||
return return_list
|
||||
|
||||
def get_permitted_documents(doctype):
|
||||
return [d.get('doc') for d in get_user_permissions().get(doctype, []) \
|
||||
if d.get('doc')]
|
||||
Loading…
Add table
Reference in a new issue