diff --git a/og_access/src/BundleFormAlter.php b/og_access/src/BundleFormAlter.php index 583c963b1..f1f6e855a 100644 --- a/og_access/src/BundleFormAlter.php +++ b/og_access/src/BundleFormAlter.php @@ -60,7 +60,7 @@ public function formAlter(array &$form, FormStateInterface $form_state) { $form['og']['og_enable_access'] = [ '#type' => 'checkbox', '#title' => t('Enable OG access control'), - '#default_value' => $this->bundle ? FALSE : $this->hasAccessControl(), + '#default_value' => $this->bundle ? $this->hasAccessControl() : FALSE, '#states' => [ 'visible' => [ [':input[name="og_is_group"]' => ['checked' => TRUE]],