refactor: use get_all instead of get_list
There won't be any perm checks here.
This commit is contained in:
parent
7fbae4cfc8
commit
ba5ee5c339
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ from frappe.model.document import bulk_insert
|
|||
|
||||
|
||||
def execute():
|
||||
users = frappe.get_list(
|
||||
users = frappe.get_all(
|
||||
"User", filters={"role_profile_name": ["is", "set"]}, fields=["name", "role_profile_name"]
|
||||
)
|
||||
user_profiles = get_records_to_insert(users)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue