mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Merge fix for non-admin navigation
This commit is contained in:
parent
f94146fb5e
commit
3d8a9aa34c
@ -506,7 +506,9 @@
|
|||||||
'settings',
|
'settings',
|
||||||
//'self-update'
|
//'self-update'
|
||||||
] as $option)
|
] 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' : '' }}">
|
<li class="{{ Request::is("{$option}*") ? 'active' : '' }}">
|
||||||
@if ($option == 'settings')
|
@if ($option == 'settings')
|
||||||
<a type="button" class="btn btn-default btn-sm pull-right"
|
<a type="button" class="btn btn-default btn-sm pull-right"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user