started work in SubDomains-ApiCommand; minor fixes

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-27 10:34:37 +01:00
parent b097c19c0a
commit 392db944a2
5 changed files with 316 additions and 74 deletions

View File

@@ -283,9 +283,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
}
}
} else {
if ($id != $this->getUserDetail('customerid')) {
throw new Exception("You cannot access data of other customers", 401);
} elseif (Settings::IsInList('panel.customer_hide_options', 'mysql')) {
if (Settings::IsInList('panel.customer_hide_options', 'mysql')) {
throw new Exception("You cannot access this resource", 405);
}
$result_stmt = Database::prepare("