mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:27:31 -05:00 
			
		
		
		
	Fixes for handler
This commit is contained in:
		
							parent
							
								
									abfe28371b
								
							
						
					
					
						commit
						b7305a8538
					
				@ -138,7 +138,7 @@ class Handler extends ExceptionHandler
 | 
			
		||||
                        'email' => 'anonymous@example.com',
 | 
			
		||||
                        'name'  => 'Anonymous User',
 | 
			
		||||
                    ]);
 | 
			
		||||
                } elseif (auth()->guard('user') && auth()->guard('user')->user() && auth()->user()->company() && auth()->user()->company()->account->report_errors) {
 | 
			
		||||
                } elseif (auth()->guard('user') && auth()->guard('user')->user() && auth()->user()->companyIsSet() && auth()->user()->company()->account->report_errors) {
 | 
			
		||||
                    $scope->setUser([
 | 
			
		||||
                        'id'    => auth()->user()->account->key,
 | 
			
		||||
                        'email' => 'anonymous@example.com',
 | 
			
		||||
 | 
			
		||||
@ -311,8 +311,11 @@ class CompanyImport implements ShouldQueue
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        unlink($tmp_file);
 | 
			
		||||
        unlink(Storage::path($this->file_location));
 | 
			
		||||
        if(file_exists($tmp_file))
 | 
			
		||||
            unlink($tmp_file);
 | 
			
		||||
 | 
			
		||||
        if(Storage::exists($this->file_location))
 | 
			
		||||
            unlink(Storage::path($this->file_location));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    //
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user