update naming
This commit is contained in:
@@ -46,23 +46,23 @@ class Domain
|
||||
return UI::getLng('domains.aliasdomain') . ' ' . $attributes['fields']['aliasdomain'];
|
||||
}
|
||||
|
||||
public static function canEditDomain(array $attributes): bool
|
||||
public static function canEdit(array $attributes): bool
|
||||
{
|
||||
return (bool)$attributes['fields']['caneditdomain'];
|
||||
}
|
||||
|
||||
public static function canViewDomainLogs(array $attributes): bool
|
||||
public static function canViewLogs(array $attributes): bool
|
||||
{
|
||||
return (bool)UI::getCurrentUser()['logviewenabled'];
|
||||
}
|
||||
|
||||
public static function canDeleteDomain(array $attributes): bool
|
||||
public static function canDelete(array $attributes): bool
|
||||
{
|
||||
return $attributes['fields']['parentdomainid'] != '0'
|
||||
&& empty($attributes['fields']['domainaliasid']);
|
||||
}
|
||||
|
||||
public static function canEditDomainDNS(array $attributes): bool
|
||||
public static function canEditDNS(array $attributes): bool
|
||||
{
|
||||
return $attributes['fields']['isbinddomain'] == '1'
|
||||
&& UI::getCurrentUser()['dnsenabled'] == '1'
|
||||
@@ -71,13 +71,13 @@ class Domain
|
||||
&& Settings::Get('system.dnsenabled') == '1';
|
||||
}
|
||||
|
||||
public function canEditDomainSSL(array $attributes): bool
|
||||
public function canEditSSL(array $attributes): bool
|
||||
{
|
||||
// FIXME: https://github.com/Froxlor/Froxlor/blob/master/templates/Sparkle/customer/domains/domains_domain.tpl#L41
|
||||
return false;
|
||||
}
|
||||
|
||||
public function canEditDomainAlias(array $attributes): bool
|
||||
public function canEditAlias(array $attributes): bool
|
||||
{
|
||||
return !empty($attributes['fields']['domainaliasid']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user