mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
[minor] [patch] ignore_validate in update_portal_role
This commit is contained in:
@@ -14,6 +14,7 @@ def execute():
|
||||
user = frappe.get_doc('User', c.user)
|
||||
user.set_default_roles()
|
||||
user.flags.ignore_validate = True
|
||||
user.flags.ignore_mandatory = True
|
||||
user.save()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user