]> git.agnieray.net Git - galette.git/commitdiff
Lower contribtiuon restrictions for direct download link
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 20 Nov 2021 07:03:10 +0000 (08:03 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Sat, 20 Nov 2021 07:03:10 +0000 (08:03 +0100)
galette/lib/Galette/Entity/Contribution.php

index 50e763f0dbc617e4544a7e4dd8740382a89e0c06..8ef9e20c3534cfb300407e22c351e1e169d8de91 100644 (file)
@@ -291,14 +291,6 @@ class Contribution
      */
     public function load($id)
     {
-        if (!$this->login->isLogged()) {
-            Analog::log(
-                'Non-logged-in users cannot load contribution id `' . $id,
-                Analog::ERROR
-            );
-            return false;
-        }
-
         try {
             $select = $this->zdb->select(self::TABLE, 'c');
             $select->join(