Extended hosting plans (quotas) option to block tenant from creating and
deleting top domains.
This commit is contained in:
parent
2f569ccd05
commit
0b31970c71
8 changed files with 43 additions and 4 deletions
|
@ -142,6 +142,20 @@ namespace WebsitePanel.Portal
|
|||
{
|
||||
ResellersPanel.Visible = true;
|
||||
}
|
||||
|
||||
if (!(domain.IsDomainPointer || domain.IsSubDomain || domain.IsInstantAlias))
|
||||
{
|
||||
UserInfo user = UsersHelper.GetUser(PanelSecurity.EffectiveUserId);
|
||||
|
||||
if (user != null)
|
||||
{
|
||||
if (user.Role == UserRole.User)
|
||||
{
|
||||
btnDelete.Enabled = Utils.CheckQouta(Quotas.OS_ALLOWTENANTCREATEDOMAINS, cntx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue