Added the ability to hide quotas
Domain Aliases hidden from hosting plans Domain Aliases quota verification disabled
This commit is contained in:
parent
11f21b1a15
commit
892c5307d5
2 changed files with 17 additions and 2 deletions
|
@ -559,6 +559,17 @@ GO
|
||||||
UPDATE [dbo].[ResourceGroups] SET ShowGroup=1
|
UPDATE [dbo].[ResourceGroups] SET ShowGroup=1
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='Quotas' AND COLS.name='ShowGroup')
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE [dbo].[Quotas] ADD [HideQuota] [bit] NULL
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
UPDATE [dbo].[Quotas] SET [HideQuota] = 1 WHERE [QuotaName] = N'OS.DomainPointers'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/****** Object: Table [dbo].[ExchangeAccounts] Extend Exchange Accounts with SubscriberNumber ******/
|
/****** Object: Table [dbo].[ExchangeAccounts] Extend Exchange Accounts with SubscriberNumber ******/
|
||||||
IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='Users' AND COLS.name='SubscriberNumber')
|
IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='Users' AND COLS.name='SubscriberNumber')
|
||||||
|
@ -3925,6 +3936,7 @@ SELECT
|
||||||
dbo.GetPackageAllocatedQuota(@PackageID, Q.QuotaID) AS ParentQuotaValue
|
dbo.GetPackageAllocatedQuota(@PackageID, Q.QuotaID) AS ParentQuotaValue
|
||||||
FROM Quotas AS Q
|
FROM Quotas AS Q
|
||||||
LEFT OUTER JOIN HostingPlanQuotas AS HPQ ON Q.QuotaID = HPQ.QuotaID AND HPQ.PlanID = @PlanID
|
LEFT OUTER JOIN HostingPlanQuotas AS HPQ ON Q.QuotaID = HPQ.QuotaID AND HPQ.PlanID = @PlanID
|
||||||
|
WHERE Q.HideQuota IS NULL OR Q.HideQuota = 0
|
||||||
ORDER BY Q.QuotaOrder
|
ORDER BY Q.QuotaOrder
|
||||||
RETURN
|
RETURN
|
||||||
GO
|
GO
|
||||||
|
@ -6424,3 +6436,6 @@ BEGIN
|
||||||
INSERT [dbo].[ScheduleTaskParameters] ([TaskID], [ParameterID], [DataTypeID], [DefaultValue], [ParameterOrder]) VALUES (N'SCHEDULE_TASK_HOSTED_SOLUTION_REPORT', N'LYNC_REPORT', N'Boolean', N'true', 5)
|
INSERT [dbo].[ScheduleTaskParameters] ([TaskID], [ParameterID], [DataTypeID], [DefaultValue], [ParameterOrder]) VALUES (N'SCHEDULE_TASK_HOSTED_SOLUTION_REPORT', N'LYNC_REPORT', N'Boolean', N'true', 5)
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1847,8 +1847,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
else if (isDomainPointer)
|
else if (isDomainPointer)
|
||||||
{
|
{
|
||||||
// domain pointer
|
// domain pointer
|
||||||
if (PackageController.GetPackageQuota(packageId, Quotas.OS_DOMAINPOINTERS).QuotaExhausted)
|
//if (PackageController.GetPackageQuota(packageId, Quotas.OS_DOMAINPOINTERS).QuotaExhausted)
|
||||||
return BusinessErrorCodes.ERROR_DOMAIN_QUOTA_LIMIT;
|
//return BusinessErrorCodes.ERROR_DOMAIN_QUOTA_LIMIT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue