Extended hosting plans (quotas) option to block tenant from creating and

deleting top domains.
This commit is contained in:
robvde 2012-09-10 21:26:38 +04:00
parent 2f569ccd05
commit 0b31970c71
8 changed files with 43 additions and 4 deletions

View file

@ -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)
{