mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed #5168 - users without superadmin could not see custom fields UI even if granted
This commit is contained in:
parent
17e0154995
commit
c4db8d37c2
|
@ -140,6 +140,7 @@ class AuthServiceProvider extends ServiceProvider
|
|||
|| $user->can('view', \App\Models\Company::class)
|
||||
|| $user->can('view', \App\Models\Manufacturer::class)
|
||||
|| $user->can('view', \App\Models\Company::class)
|
||||
|| $user->can('view', \App\Models\CustomField::class)
|
||||
|| $user->can('view', \App\Models\Depreciation::class);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -524,8 +524,8 @@
|
|||
</a>
|
||||
|
||||
<ul class="treeview-menu">
|
||||
@can('view', \App\Models\Customfield::class)
|
||||
<li {!! (Request::is('custom_fields*') ? ' class="active"' : '') !!}>
|
||||
@can('view', \App\Models\CustomField::class)
|
||||
<li {!! (Request::is('fields*') ? ' class="active"' : '') !!}>
|
||||
<a href="{{ route('fields.index') }}">
|
||||
{{ trans('admin/custom_fields/general.custom_fields') }}
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue