Missing check for accessible versions
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jan 2018 12:36:25 +0000 (13:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jan 2018 12:36:25 +0000 (13:36 +0100)
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index 862b5b9f27a0583cd0b64754da7a390de452230e..56d7302cde9f8e5444f0f88bd904fe76949a098a 100644 (file)
@@ -751,11 +751,13 @@ class PackageUpdateDispatcher extends SingletonFactory {
                        ON              (pus.packageUpdateServerID = pu.packageUpdateServerID)
                        WHERE           pu.package = ?
                                        AND puv.packageVersion = ?
+                                       AND puv.isAccessible = ?
                                        AND pus.isDisabled = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute([
                        $package,
                        $version,
+                       1,
                        0
                ]);
                $versions = $statement->fetchAll(\PDO::FETCH_ASSOC);