mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
Merge fix for non-admin navigation
This commit is contained in:
parent
f94146fb5e
commit
3d8a9aa34c
@ -506,7 +506,9 @@
|
||||
'settings',
|
||||
//'self-update'
|
||||
] as $option)
|
||||
@if (in_array($option, ['dashboard', 'settings']) || Auth::user()->can('view', substr($option, 0, -1)))
|
||||
@if (in_array($option, ['dashboard', 'settings'])
|
||||
|| Auth::user()->can('view', substr($option, 0, -1))
|
||||
|| Auth::user()->can('create', substr($option, 0, -1)))
|
||||
<li class="{{ Request::is("{$option}*") ? 'active' : '' }}">
|
||||
@if ($option == 'settings')
|
||||
<a type="button" class="btn btn-default btn-sm pull-right"
|
||||
|
Loading…
Reference in New Issue
Block a user