I want to prevent a custom page from loading based on a condition. For example, I want to put an expiration date on my custom application. When the application date has expired, I want to prevent the page from being accessed. I’m trying to roll my own security on my custom app.
I found documentation that used this scenario:
public static bool IsActive() => PXAccess.FeatureInstalled<FeaturesSet.someFeature>();
If I put public static bool IsActive() => false; in my graph, should that prevent the page from loading? It doesn’t seem to have any effect.
If that is not the way to do it, does anyone know how?