Skip to content
Snippets Groups Projects

2878513-10.1.x

Open James Shields requested to merge issue/drupal-2878513:2878513-11.x into 11.x
Files
5
@@ -17,7 +17,9 @@ class ContactMessageAccessControlHandler extends EntityAccessControlHandler {
* {@inheritdoc}
*/
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowedIfHasPermission($account, 'access site-wide contact form');
// Message entities are not stored. Access is denied for
// viewing, updating, and deleting.
return AccessResult::forbidden('Message entities are not stored.');
}
}
Loading