Hi,
I am developing a customization and got the “Error: You are not currently logged in” exception. I understand the problem, question is, how do I test if the user is logged in or not before I execute my code?
Hi,
I am developing a customization and got the “Error: You are not currently logged in” exception. I understand the problem, question is, how do I test if the user is logged in or not before I execute my code?
Best answer by rosenjon
if(PXInstanceHelper != null && PXInstanceHelper.CurrentCompany != null)
{
//...log stuff here
}
I think this is pretty lightweight and should work….absent more context on what you’re trying to achieve. Why not check if the property is null?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.