mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
fix(web/user/edit): usertype - teacher
This commit is contained in:
parent
81520f1063
commit
0b385dd4f1
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user