Skip to content

Commit

Permalink
Merge pull request #24 from paynl/feature/PLUG-800
Browse files Browse the repository at this point in the history
PLUG-800 Fix for usergroup NOT_LOGGED_IN
  • Loading branch information
woutse authored Jan 13, 2022
2 parents 2242dc3 + b276690 commit 68d2d3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions view/frontend/web/js/view/payment/method-renderer/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ define(
return this;
},
isVisible:function() {
var group = window.checkoutConfig.payment.showforgroup[this.item.method];
if(group){
if(group == 0 && customer.isLoggedIn){
var group = window.checkoutConfig.payment.showforgroup[this.item.method];
if (group) {
if (group == 0 && customer.isLoggedIn) {
return false;
}
if(group > 0 && !customer.isLoggedIn){
if (group > 0 && !customer.isLoggedIn) {
return false;
}
if(group != customer.customerData.group_id){
if (group != customer.customerData.group_id) {
return false;
}
}
Expand Down

0 comments on commit 68d2d3f

Please sign in to comment.