remove unused local variables

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-12 11:09:30 +01:00
parent ff611fa8dc
commit 2e597ef7d9
3 changed files with 2 additions and 13 deletions

View File

@@ -718,7 +718,6 @@ class SubDomains extends ApiCommand implements ResourceEntity
// get needed customer info to reduce the subdomain-usage-counter by one
$customer = $this->getCustomerData();
$subdomains_used = $customer['subdomains_used'];
if (!$this->isAdmin() && $result['caneditdomain'] == 0) {
throw new Exception("You cannot edit this resource", 405);