permission engine bugfix

This commit is contained in:
Rushabh Mehta
2012-04-18 12:34:18 +05:30
parent 40808e18f1
commit 3a9ddaf2c1
3 changed files with 14 additions and 7 deletions

View File

@@ -68,7 +68,8 @@ class DocType:
'create': cint(perm.create),
'cancel': cint(perm.cancel),
'submit': cint(perm.submit),
'amend': cint(perm.amend)
'amend': cint(perm.amend),
'match': perm.match
} for perm in sorted(doclist,
key=lambda d: [d.fields.get('permlevel'),
d.fields.get('role')]) if perm.doctype=='DocPerm']