mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 19:37:32 -05:00 
			
		
		
		
	Merge pull request #3855 from turbo124/v2
Nest HTTP requirements inside a working installation - allows non sec…
This commit is contained in:
		
						commit
						9656baa5f4
					
				@ -316,12 +316,13 @@ class BaseController extends Controller
 | 
			
		||||
    
 | 
			
		||||
    public function flutterRoute()
 | 
			
		||||
    {
 | 
			
		||||
        
 | 
			
		||||
        if (config('ninja.require_https') && !request()->isSecure()) {  
 | 
			
		||||
            return redirect()->secure(request()->getRequestUri());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
      
 | 
			
		||||
        if ((bool)$this->checkAppSetup() !== false && Schema::hasTable('accounts') && $account = Account::all()->first()) {
 | 
			
		||||
     
 | 
			
		||||
          if (config('ninja.require_https') && !request()->isSecure()) {  
 | 
			
		||||
              return redirect()->secure(request()->getRequestUri());
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
            $data = [];
 | 
			
		||||
 | 
			
		||||
            if (Ninja::isSelfHost()) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user