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