diff --git a/resources/views/models/custom_fields_form.blade.php b/resources/views/models/custom_fields_form.blade.php index 9becec8fb4..a76fdd63d4 100644 --- a/resources/views/models/custom_fields_form.blade.php +++ b/resources/views/models/custom_fields_form.blade.php @@ -26,12 +26,11 @@ @else - - @can('admin') + @if (($field->field_encrypted=='0') || (Gate::allows('admin'))) @else - @endcan + @endif @endif