diff --git a/erpnext/education/doctype/student/student.py b/erpnext/education/doctype/student/student.py index da25880c81b..705c6e4e98e 100644 --- a/erpnext/education/doctype/student/student.py +++ b/erpnext/education/doctype/student/student.py @@ -54,6 +54,7 @@ class Student(Document): 'send_welcome_email': 1, 'user_type': 'Website User' }) + student_user.flags.ignore_permissions = True student_user.add_roles("Student") student_user.save() update_password_link = student_user.reset_password()