Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

+6 -1
View File
@@ -294,7 +294,12 @@ class _Application extends \IPS\Application
*/
public function allowGuestAccess( \IPS\Application\Module $module, $controller, $do )
{
if( \IPS\Settings::i()->nexus_reg_force AND ( $module->key == 'store' OR $module->key == 'checkout' ) )
if( ( \IPS\Settings::i()->nexus_reg_force OR \IPS\Db::i()->select( 'COUNT(*)', 'nexus_packages', 'p_reg=1' )->first() ) AND ( $module->key == 'store' OR $module->key == 'checkout' ) )
{
return TRUE;
}
if ( \IPS\Settings::i()->nexus_subs_register AND ( $module->key == 'store' OR $module->key == 'checkout' ) )
{
return TRUE;
}