Skip to content

Instantly share code, notes, and snippets.

@patrick711
Created March 21, 2023 17:25
Show Gist options
  • Save patrick711/9d75d1c8c7c24f665febc8d0d4085daf to your computer and use it in GitHub Desktop.
Save patrick711/9d75d1c8c7c24f665febc8d0d4085daf to your computer and use it in GitHub Desktop.
An example of a page that has been secured against use by unauthorized users
#region Constructor
public ISPSOut846SendProcess()
{
Customers.SetProcessAllCaption("Send All");
Customers.SetProcessCaption("Send");
Customers.SetProcessDelegate(SendData);
ISPSCustomerSettings settings = CustomerSettings.Current;
if (!(settings.OutboundInventoryAdviceEnabled ?? false))
{
throw new PXSetupNotEnteredException(ISPSMessages.FeatureNotEnbabled, typeof(ISPSCustomerSettings), "Outbound 846");
}
}
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment