fix(web/user/edit): usertype - teacher

This commit is contained in:
Baoshuo Ren 2022-10-21 15:33:08 +08:00 committed by GitHub
parent 81520f1063
commit 0b385dd4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,8 +230,8 @@ EOD);
$user['usertype'] = 'student';
if ($_POST['user_type'] == 'teacher') {
removeUserType($user, 'student');
addUserType($user, 'teacher');
removeUserType($user, 'student');
} else {
addUserType($user, 'student');
}