Skip to content

Commit

Permalink
fix: filter select perm in get_doctypes_with_read
Browse files Browse the repository at this point in the history
closes frappe#26015

Extracted from frappe#26018
  • Loading branch information
ankush committed Apr 18, 2024
1 parent 1dcfadf commit f28dd28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def has_controller_permissions(doc, ptype, user=None, debug=False) -> bool:


def get_doctypes_with_read():
return list({cstr(p.parent) for p in get_valid_perms() if p.parent})
return list({cstr(p.parent) for p in get_valid_perms() if p.parent and p.read})


def get_valid_perms(doctype=None, user=None):
Expand Down

0 comments on commit f28dd28

Please sign in to comment.