Cleaning up api
This commit is contained in:
parent
df6bcbfb0f
commit
5fc583deb2
2 changed files with 3 additions and 3 deletions
|
|
@ -128,7 +128,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public bool IsMatterControlPro()
|
||||
{
|
||||
var result = ApplicationController.Instance.UserHasPermissionToId?.Invoke("ag1zfm1oLWRmcy1wcm9kchgLEgtEaWdpdGFsSXRlbRiAgIDzyMGxCgw");
|
||||
var result = ApplicationController.Instance.UserHasPro?.Invoke();
|
||||
if (result != null)
|
||||
{
|
||||
return result.Value;
|
||||
|
|
@ -373,7 +373,7 @@ namespace MatterHackers.MatterControl
|
|||
public Func<IObject3D, bool> UserHasPermission { get; set; } = (item) => false;
|
||||
|
||||
// check permission to a purchase
|
||||
public Func<string, bool> UserHasPermissionToId { get; set; }
|
||||
public Func<bool> UserHasPro { get; set; }
|
||||
|
||||
public Func<IObject3D, ThemeConfig, (string url, GuiWidget markdownWidget)> GetUnlockData { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
static MatterControlApplication()
|
||||
{
|
||||
if (MatterHackers.MatterControl.AppContext.Options.McwsTestEnvironment)
|
||||
if (AppContext.Options.McwsTestEnvironment)
|
||||
{
|
||||
MCWSBaseUri = "https://mattercontrol-test.appspot.com"; // http://192.168.2.129:9206
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue