diff --git a/core/modules/filter/src/FilterFormatAccessControlHandler.php b/core/modules/filter/src/FilterFormatAccessControlHandler.php index 5e4a55a..2dcb6dc 100644 --- a/core/modules/filter/src/FilterFormatAccessControlHandler.php +++ b/core/modules/filter/src/FilterFormatAccessControlHandler.php @@ -20,10 +20,6 @@ class FilterFormatAccessControlHandler extends EntityAccessControlHandler { protected function checkAccess(EntityInterface $filter_format, $operation, AccountInterface $account) { /** @var \Drupal\filter\FilterFormatInterface $filter_format */ - if ($operation === 'view') { - return AccessResult::allowedIfHasPermission($account, 'administer filters'); - } - // All users are allowed to use the fallback filter. if ($operation == 'use') { if ($filter_format->isFallbackFormat()) { @@ -45,7 +41,7 @@ protected function checkAccess(EntityInterface $filter_format, $operation, Accou return AccessResult::forbidden(); } - if (in_array($operation, ['disable', 'update'])) { + if (in_array($operation, ['disable', 'update', 'view'])) { return parent::checkAccess($filter_format, $operation, $account); }