Bug Report for SampleLicenseAddon-ExternalResourceClient.zip

I would like to report a bug in SampleLicenseAddon-ExternalResourceClient.zip version 1.9, which is available at https://www.sugaroutfitters.com/selling/license

The issue is with Managing Users

If the original license was for a higher number of licenses and they reduced the number of licenses. It's not possible to remove users. The issue is inside of the function get_default_payload. The code says

Fullscreen
1
$sql = "SELECT count(*) as the_count FROM so_users WHERE shortname = '".$db->quote($outfitters_config['shortname'])."'";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 where is should be obtaining the number of license users from the body of the POST. 

Since the code incorrectly is counting the number of users in the so_users table. We are unable to reduce the number of users Disappointed