fixing bugs
This commit is contained in:
parent
b9e6bafc1e
commit
54fade88c8
16 changed files with 81 additions and 109 deletions
|
@ -828,19 +828,16 @@ namespace WebsitePanel.EnterpriseServer
|
|||
rule.Users.Add(permission.Account);
|
||||
}
|
||||
|
||||
if (permission.Access.ToLower().Contains("read"))
|
||||
if (permission.Access.ToLower().Contains("read-only"))
|
||||
{
|
||||
rule.Read = true;
|
||||
rule.Source = true;
|
||||
}
|
||||
|
||||
if (permission.Access.ToLower().Contains("write"))
|
||||
if (permission.Access.ToLower().Contains("read-write"))
|
||||
{
|
||||
rule.Write = true;
|
||||
}
|
||||
|
||||
if (permission.Access.ToLower().Contains("source"))
|
||||
{
|
||||
rule.Source = true;
|
||||
rule.Read = true;
|
||||
}
|
||||
|
||||
rule.Pathes.Add("*");
|
||||
|
@ -888,24 +885,13 @@ namespace WebsitePanel.EnterpriseServer
|
|||
permission.DisplayName = userObj.DisplayName;
|
||||
}
|
||||
|
||||
if (rule.Read)
|
||||
if (rule.Read && !rule.Write)
|
||||
{
|
||||
permission.Access += "Read,";
|
||||
permission.Access = "Read-Only";
|
||||
}
|
||||
|
||||
if (rule.Write)
|
||||
{
|
||||
permission.Access += "Write,";
|
||||
}
|
||||
|
||||
if (rule.Source)
|
||||
{
|
||||
permission.Access += "Source";
|
||||
}
|
||||
|
||||
if (permission.Access[permission.Access.Length - 1] == ',')
|
||||
{
|
||||
permission.Access = permission.Access.Remove(permission.Access.Length - 1);
|
||||
permission.Access = "Read-Write";
|
||||
}
|
||||
|
||||
permissions.Add(permission);
|
||||
|
|
|
@ -961,7 +961,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
stats.CreatedEnterpriseStorageFolders = folders.Count();
|
||||
|
||||
stats.UsedEnterpriseStorageSpace = folders.Where(x => x.FRSMQuotaGB != -1).Sum(x => x.FRSMQuotaGB);
|
||||
stats.UsedEnterpriseStorageSpace = folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1025,7 +1025,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
stats.CreatedEnterpriseStorageFolders += folders.Count();
|
||||
|
||||
stats.UsedEnterpriseStorageSpace += folders.Where(x => x.FRSMQuotaGB != -1).Sum(x => x.FRSMQuotaGB);
|
||||
stats.UsedEnterpriseStorageSpace += folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue