fix(18837): Student creation error (#18838)
Academic user not able to create student
This commit is contained in:
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user