mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 20:18:33 -05:00 
			
		
		
		
	Update Authenticate.php
FIX Apache users https://github.com/invoiceninja/invoiceninja/issues/1584
This commit is contained in:
		
							parent
							
								
									89bb0bd23f
								
							
						
					
					
						commit
						95f01166cf
					
				@ -68,7 +68,7 @@ class Authenticate
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            $account = $contact->account;
 | 
					            $account = $contact->account;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (Auth::guard('user')->check() && Auth::user('user')->account_id === $account->id) {
 | 
					            if (Auth::guard('user')->check() && Auth::user('user')->account_id == $account->id) {
 | 
				
			||||||
                // This is an admin; let them pretend to be a client
 | 
					                // This is an admin; let them pretend to be a client
 | 
				
			||||||
                $authenticated = true;
 | 
					                $authenticated = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user