You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once an instructor is created, one should create the role of instructor.
If instructor is set to left then role should be updated to not be an instructor anymore \
Taken from Employee
def update_user(self):
# add employee role if missing
user = frappe.get_doc("User", self.user_id)
user.flags.ignore_permissions = True
if "Employee" not in user.get("roles"):
user.append_roles("Employee")
The text was updated successfully, but these errors were encountered:
Once an instructor is created, one should create the role of instructor.
If instructor is set to left then role should be updated to not be an instructor anymore \
Taken from Employee
The text was updated successfully, but these errors were encountered: