mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:57:33 -05:00 
			
		
		
		
	Prevent multiple gateways w/tokens
This commit is contained in:
		
							parent
							
								
									fd279bd50f
								
							
						
					
					
						commit
						d0ad4d21c7
					
				@ -907,7 +907,7 @@ class Account extends Eloquent
 | 
				
			|||||||
            $available = true;
 | 
					            $available = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            foreach ($gatewayTypes as $type) {
 | 
					            foreach ($gatewayTypes as $type) {
 | 
				
			||||||
                if ($type != GATEWAY_TYPE_TOKEN && $paymentDriver->handles($type)) {
 | 
					                if ($paymentDriver->handles($type)) {
 | 
				
			||||||
                    $available = false;
 | 
					                    $available = false;
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user