diff --git a/core/modules/contact/src/Access/ContactPageAccess.php b/core/modules/contact/src/Access/ContactPageAccess.php
index b0574da..11168dd 100644
--- a/core/modules/contact/src/Access/ContactPageAccess.php
+++ b/core/modules/contact/src/Access/ContactPageAccess.php
@@ -86,8 +86,10 @@ public function access(UserInterface $user, AccountInterface $account) {
     // If the requested user has disabled their contact form, do not allow users
     // to contact them.
     $account_data = $this->userData->get('contact', $contact_account->id(), 'enabled');
-    if (isset($account_data) && empty($account_data)) {
-      return $access;
+    if (isset($account_data)) {
+      if (empty($account_data)) {
+        return $access;
+      }
     }
     // If the requested user did not save a preference yet, deny access if the
     // configured default is disabled.
diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php
index 51124c9..35d3b9b 100644
--- a/core/modules/contact/src/Tests/ContactPersonalTest.php
+++ b/core/modules/contact/src/Tests/ContactPersonalTest.php
@@ -185,6 +185,16 @@ function testPersonalContactAccess() {
     $this->drupalPostForm(NULL, array('contact' => TRUE), t('Save'));
     $this->assertFieldChecked('edit-contact--2');
     $this->assertTrue(\Drupal::service('user.data')->get('contact', $this->web_user->id(), 'enabled'), 'Personal contact form enabled');
+
+    // Test disabling global default contact forms settings
+    // in combination with user enabled settings.
+    \Drupal::config('contact.settings')->set('user_default_enabled', FALSE)->save();
+    $this->contact_user = $this->drupalCreateUser();
+    $this->assertFalse(\Drupal::service('user.data')->get('contact', $this->contact_user->id(), 'enabled'), 'Personal contact form disabled');
+    \Drupal::service('user.data')->set('contact', $this->contact_user->id(), 'enabled', 1);
+    $this->assertTrue(\Drupal::service('user.data')->get('contact', $this->contact_user->id(), 'enabled'), 'Personal contact form enabled');
+    $this->drupalGet('user/' . $this->contact_user->id() . '/contact');
+    $this->assertResponse(200);
   }
 
   /**
