mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:07:32 -05:00 
			
		
		
		
	fix for side bar nav (#2408)
This commit is contained in:
		
							parent
							
								
									cd10003d64
								
							
						
					
					
						commit
						3d8742de1b
					
				@ -419,9 +419,9 @@
 | 
			
		||||
                'expenses',
 | 
			
		||||
                'vendors',
 | 
			
		||||
            ] as $option)
 | 
			
		||||
            @if (in_array($option, ['dashboard', 'settings'])
 | 
			
		||||
                || Auth::user()->can('view', substr($option, 0, -1))
 | 
			
		||||
                || Auth::user()->can('create', substr($option, 0, -1)))
 | 
			
		||||
                @if(!Auth::user()->account->isModuleEnabled(substr($option, 0, -1)))
 | 
			
		||||
                    {{ '' }}
 | 
			
		||||
                @else
 | 
			
		||||
                    @include('partials.navigation_option')
 | 
			
		||||
                @endif
 | 
			
		||||
            @endforeach
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,8 @@
 | 
			
		||||
            href="{{ url('/reports/calendar') }}">
 | 
			
		||||
            <i class="fa fa-calendar" style="width:20px"></i>
 | 
			
		||||
        </a>
 | 
			
		||||
    @elseif ($option == 'dashboard')
 | 
			
		||||
        
 | 
			
		||||
    @elseif (Auth::user()->can('create', $option) || Auth::user()->can('create', substr($option, 0, -1)))
 | 
			
		||||
        <a type="button" class="btn btn-primary btn-sm pull-right"
 | 
			
		||||
            href="{{ url("/{$option}/create") }}">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user