]> git.agnieray.net Git - galette.git/commitdiff
User may not be logged retrieving contribution
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 13 Nov 2023 21:07:41 +0000 (22:07 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 13 Nov 2023 21:07:41 +0000 (22:07 +0100)
fixes #1740

galette/lib/Galette/Entity/Contribution.php

index 6998e91bffca4f7b2f7391489e3f0179f87c5106..49d9e948a795c0e6f97d4e4d447593be66b7cd95 100644 (file)
@@ -303,7 +303,7 @@ class Contribution
      */
     public function load($id)
     {
-        if (!$this->login->isLogged()) {
+        if (!$this->login->isLogged() && $this->login->id == '') {
             return false;
         }