diff --git a/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php b/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php index 5c93ce6e509..82cc90b497e 100644 --- a/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php +++ b/docroot/modules/custom/va_gov_header_footer/src/EventSubscriber/FormEventSubscriber.php @@ -60,7 +60,8 @@ public static function getSubscribedEvents(): array { public function formAlter(FormAlterEvent $event): void { $form = &$event->getForm(); $formId = $event->getFormId(); - if (in_array($formId, $this->menus)) { + $admin = $this->permsService->hasAdminRole(TRUE); + if (in_array($formId, $this->menus) && $admin) { $this->hideMenuLinkDescriptionField($form); } }