includes/class-freemius.php
function has_any_active_valid_license() {
            if ( ! fs_is_network_admin() ) {
                return $this->has_active_valid_license();
            }

            $installs            = $this->get_blog_install_map();
            $all_plugin_licenses = self::get_all_licenses( $this->_module_id );

            foreach ( $installs as $blog_id => $install ) {
                if ( ! FS_Plugin_License::is_valid_id( $install->license_id ) ) {
                    continue;
                }

                foreach ( $all_plugin_licenses as $license ) {
                    if ( $license->id == $install->license_id ) {
                        if ( self::is_active_valid_license( $license ) ) {
                            return true;
                        }
                    }
                }
            }

            return false;
        }
function has_any_active_valid_license() {
            if ( ! fs_is_network_admin() ) {
                return $this->has_active_valid_license();
            }

            $installs            = $this->get_blog_install_map();
            $all_plugin_licenses = self::get_all_licenses( $this->_module_id );

            foreach ( $installs as $blog_id => $install ) {
                if ( ! FS_Plugin_License::is_valid_id( $install->license_id ) ) {
                    continue;
                }

                foreach ( $all_plugin_licenses as $license ) {
                    if ( $license->id == $install->license_id ) {
                        if ( self::is_active_valid_license( $license ) ) {
                            return true;
                        }
                    }
                }
            }

            return false;
        }
function has_any_active_valid_license ( ) { if ( ! fs_is_network_admin ( ) ) { return $ this -> has_active_valid_license ( ) ; } $ installs = $ this -> get_blog_install_map ( ) ; $ all_plugin_licenses = self :: get_all_licenses ( $ this -> _module_id ) ; foreach ( $ installs as $ blog_id => $ install ) { if ( ! FS_Plugin_License :: is_valid_id ( $ install -> license_id ) ) { continue ; } foreach ( $ all_plugin_licenses as $ license ) { if ( $ license -> id == $ install -> license_id ) { if ( self :: is_active_valid_license ( $ license ) ) { return true ; } } } } return false ; }
Checks if there's any site that is associated with an active & valid license.
This logic is used to determine if the admin can download the premium code base from a network level admin.

@author Vova Feldman (@svovaf)
@since  2.1.3

@return bool
Checks if there s any site that is associated with an active & valid license . This logic is used to determine if the admin can download the premium code base from a network level admin .