Removed $user from gate check

This commit is contained in:
snipe
2026-03-11 15:05:26 +00:00
parent b90f2d719c
commit 5851e2cd68
2 changed files with 3 additions and 3 deletions

View File

@@ -107,7 +107,7 @@
</div>
</div>
@can('manageContactInfo', $user)
@can('manageContactInfo')
<!-- City -->
<div class="form-group{{ $errors->has('city') ? ' has-error' : '' }}">
<label class="col-md-3 control-label" for="city">{{ trans('general.city') }}</label>

View File

@@ -237,7 +237,7 @@
</div>
</div>
@can('manageContactInfo', $user)
@can('manageContactInfo')
<!-- Email -->
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
<label class="col-md-3 control-label" for="email">{{ trans('admin/users/table.email') }} </label>
@@ -445,7 +445,7 @@
<!-- Location -->
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])
@can('manageContactInfo', $user)
@can('manageContactInfo')
<!-- Phone -->
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label>