mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
fix for side bar nav (#2408)
This commit is contained in:
parent
cd10003d64
commit
3d8742de1b
@ -419,11 +419,11 @@
|
||||
'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)))
|
||||
@include('partials.navigation_option')
|
||||
@endif
|
||||
@if(!Auth::user()->account->isModuleEnabled(substr($option, 0, -1)))
|
||||
{{ '' }}
|
||||
@else
|
||||
@include('partials.navigation_option')
|
||||
@endif
|
||||
@endforeach
|
||||
@if ( ! Utils::isNinjaProd())
|
||||
@foreach (Module::collections() as $module)
|
||||
|
@ -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…
Reference in New Issue
Block a user