]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Entity/Transaction.php
Fix contributions and transactions list for non parent members
[galette.git] / galette / lib / Galette / Entity / Transaction.php
index 446bc736147cc35cdf1a63bfa014ede6b995c181..02fd3a97f2dcf0a5868c4947709b1bccdd050fb3 100644 (file)
@@ -662,7 +662,7 @@ class Transaction
     public function canShow(Login $login): bool
     {
         //admin and staff users can edit, as well as member itself
-        if ($this->id && $login->id == $this->id || $login->isAdmin() || $login->isStaff()) {
+        if (!$this->id || $this->id && $login->id == $this->_member || $login->isAdmin() || $login->isStaff()) {
             return true;
         }