You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
2299
-
//return false;
2312
+
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
2313
+
returnfalse;
2300
2314
}
2301
2315
if (!empty($client_id) && !empty($server_id)) {
2302
2316
$server_id = intval($server_id);
2303
2317
$client_id = intval($client_id);
2304
-
$sql = "SELECT id, origin FROM dns_soa d INNER JOIN sys_user s on(d.sys_groupid = s.default_group) WHERE client_id = '$client_id' AND server_id = $server_id";
2318
+
$sql = "SELECT id, origin FROM dns_soa d INNER JOIN sys_user s on(d.sys_groupid = s.default_group) WHERE client_id = $client_id AND server_id = $server_id";
2305
2319
$result = $app->db->queryAllRecords($sql);
2306
2320
return$result;
2307
2321
}
2308
2322
returnfalse;
2309
2323
}
2310
-
*/
2324
+
2311
2325
2312
2326
/**
2313
2327
* Changes DNS zone status
@@ -2323,13 +2337,35 @@ public function dns_zone_set_status($session_id, $primary_id, $status) {
2323
2337
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
0 commit comments