Merge pull request #9880 from inietov/bug/fd18463/cannot_edit_departments

Fixes: Can't update departments if Full Company Support is activated
This commit is contained in:
snipe 2021-08-30 19:40:59 -07:00 committed by GitHub
commit 7e2def7896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,8 @@
<!-- Company -->
@if (\App\Models\Company::canManageUsersCompanies())
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'company_id'])
@else
<input id="hidden_company_id" type="hidden" name="company_id" value="{{ Auth::user()->company_id }}">
@endif