From 2ab91fed0197f25e1557dc3993605697d5813929 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 20 Sep 2016 03:48:38 -0700 Subject: [PATCH] Fixes #2607 - non-encrypted now visible to non-admins with asset access --- resources/views/models/custom_fields_form.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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