mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +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';
|
$user['usertype'] = 'student';
|
||||||
|
|
||||||
if ($_POST['user_type'] == 'teacher') {
|
if ($_POST['user_type'] == 'teacher') {
|
||||||
removeUserType($user, 'student');
|
|
||||||
addUserType($user, 'teacher');
|
addUserType($user, 'teacher');
|
||||||
|
removeUserType($user, 'student');
|
||||||
} else {
|
} else {
|
||||||
addUserType($user, 'student');
|
addUserType($user, 'student');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user