fix: raise_exception=False for has_permission in filter_allowed_users (#20113)
* raise_exception=False for has_permission for workflow users * style: format [skip ci] --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
parent
458989dbf4
commit
6cba6753bc
1 changed files with 3 additions and 1 deletions
|
|
@ -444,7 +444,9 @@ def filter_allowed_users(users, doc, transition):
|
|||
|
||||
filtered_users = []
|
||||
for user in users:
|
||||
if has_approval_access(user, doc, transition) and has_permission(doctype=doc, user=user):
|
||||
if has_approval_access(user, doc, transition) and has_permission(
|
||||
doctype=doc, user=user, raise_exception=False
|
||||
):
|
||||
filtered_users.append(user)
|
||||
return filtered_users
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue