diff --git a/bin/controls/profile/UserProfile.js b/bin/controls/profile/UserProfile.js index 26a253a5ee1e0ab3860860f00564000763d4f14c..d8cc11b39f3c026218409ae98ea691b6775fdda0 100644 --- a/bin/controls/profile/UserProfile.js +++ b/bin/controls/profile/UserProfile.js @@ -228,7 +228,7 @@ define('package/quiqqer/memberships/bin/controls/profile/UserProfile', [ } // if autoextend and not cancelled -> hide endDate - if (Membership.cancelStatus == 0) { + if (!Membership.cancelled && Membership.cancelStatus == 0) { var CancelContainer = MembershipElm.getElement('.quiqqer-memberships-profile-userprofile-btn'); // cancel btn diff --git a/src/QUI/Memberships/Users/MembershipUser.php b/src/QUI/Memberships/Users/MembershipUser.php index 60fa68915439ec8e98151a5becbd08a848304935..29996225dda586b725779ff6a119a698b26f9a4f 100644 --- a/src/QUI/Memberships/Users/MembershipUser.php +++ b/src/QUI/Memberships/Users/MembershipUser.php @@ -1223,7 +1223,7 @@ protected function createAbortCancelVerification(): LinkVerification { return $this->verificationFactory->createLinkVerification( 'quiqqer-memberships-users-cancel-abort-' . $this->id, - new CancelVerification(), + new AbortCancelVerification(), [ 'membershipUserId' => $this->id ],