mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
fix(18837): Student creation error (#18838)
Academic user not able to create student
This commit is contained in:
committed by
Nabin Hait
parent
a5907e17d5
commit
c901d6322c
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user