remove unnecessary domains_see_all column

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-26 12:12:06 +01:00
parent 15ed0521c5
commit c696542cf5
18 changed files with 7 additions and 47 deletions

View File

@@ -41,7 +41,7 @@ class Dns
$where_clause = '';
if ($area == 'admin') {
if ($userinfo['domains_see_all'] != '1') {
if ((int)$userinfo['customers_see_all'] == 0) {
$where_clause = '`adminid` = :uid AND ';
$dom_data['uid'] = $userinfo['userid'];
}