Skip to content
Snippets Groups Projects
Commit 57afdabd authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2552519 by andypost: Fix...

Issue #2552519 by andypost: Fix \Drupal\contact\ContactFormAccessControlHandler::checkAccess() visibility
parent 0549d593
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -22,7 +22,7 @@ class ContactFormAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
public function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) {
protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) {
if ($operation == 'view') {
// Do not allow access personal form via site-wide route.
return AccessResult::allowedIf($account->hasPermission('access site-wide contact form') && $entity->id() !== 'personal')->cachePerPermissions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment