diff --git a/src/NovaTabTranslatable.php b/src/NovaTabTranslatable.php index 9221fcf..d997626 100644 --- a/src/NovaTabTranslatable.php +++ b/src/NovaTabTranslatable.php @@ -71,10 +71,12 @@ protected function createTranslatableFields() collect($this->locales) ->crossJoin($this->originalFields) ->eachSpread(function (string $locale, Field $field) { - $translatedField = $this->createTranslatedField($field, $locale); + if($field->authorizedToSee(request())) { + $translatedField = $this->createTranslatedField($field, $locale); - $this->data[] = $translatedField; - $this->translatedFieldsByLocale[$locale][] = $translatedField; + $this->data[] = $translatedField; + $this->translatedFieldsByLocale[$locale][] = $translatedField; + } }); }