diff --git a/switch.php b/switch.php index b9305613..273b4d8c 100644 --- a/switch.php +++ b/switch.php @@ -70,7 +70,7 @@ if ($ui->id('id', 19, 'get')) { $sql = null; - if ($row['accounttype'] == 'u') { + if ($row['accounttype'] == 'u' && $row['resellerid'] == $reseller_id) { $_SESSION['userid'] = $ui->id('id', 19, 'get'); @@ -103,4 +103,4 @@ if ($ui->id('id', 19, 'get')) { } } $sql = null; -redirect('login.php'); \ No newline at end of file +redirect('login.php');