sync
This commit is contained in:
@@ -13,6 +13,7 @@ public partial class ManageMachines : MachineDeviceBasePage
|
||||
|
||||
public bool IsDealer = IronIntel.Contractor.SystemParams.IsDealer;
|
||||
public bool IsReadOnly = false;
|
||||
protected string AssetListApiAddress;
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -35,6 +36,11 @@ public partial class ManageMachines : MachineDeviceBasePage
|
||||
RedirectToLoginPage();
|
||||
|
||||
IsReadOnly = CheckReadonly(SystemParams.CompanyID, Feature.MANAGE_ASSETS);
|
||||
|
||||
if (!Request.Url.AbsoluteUri.Contains("localhost") && "https".Equals(Request.Url.Scheme, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
AssetListApiAddress = SystemParams.CurrentCustomerParams.AssetListApiAddress;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -87,4 +93,11 @@ public partial class ManageMachines : MachineDeviceBasePage
|
||||
return permission;
|
||||
}
|
||||
}
|
||||
public string CompanyID
|
||||
{
|
||||
get
|
||||
{
|
||||
return SystemParams.CompanyID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user