mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
minor fix
This commit is contained in:
@@ -120,6 +120,7 @@ def enable_all_roles_and_domains():
|
||||
_role.save()
|
||||
|
||||
# add all roles to users
|
||||
if roles:
|
||||
user = frappe.get_doc("User", "Administrator")
|
||||
user.add_roles(*[role.get("name") for role in roles])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user