fixed bug where you can't change the station which a station account belongs to
This commit is contained in:
@@ -23,13 +23,19 @@
|
||||
}
|
||||
|
||||
if($user['user_group'] != $user_group) {
|
||||
if($_POST['user_group'] == "station") {
|
||||
if($user_group == "station") {
|
||||
change_user_group($con, $id, $user_group, $bind_station);
|
||||
} else {
|
||||
change_user_group($con, $id, $user_group, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if($user['s_id'] != $bind_station) {
|
||||
if ($user_group == "station") {
|
||||
change_s_id($con, $id, $bind_station);
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($password)) {
|
||||
$phash = generate_password_hash($password, $user['salt']);
|
||||
change_password($con, $id, $phash);
|
||||
|
||||
Reference in New Issue
Block a user