summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitai Burstein2010-02-22 10:46:16 (GMT)
committer Amitai Burstein2010-02-22 10:46:16 (GMT)
commitef7db4866e2da2043ded9fe4c23c242e4e5466cc (patch)
treea37ddaf51c077ff0dbf2723693cb7438a56dc502
parent950bdf09f256107d379e78f3963bb2a9fe082f69 (diff)
#431944 by ifoundthetao | gpk: Fixed Public Audience checkbox still visible with all private group settings.
-rw-r--r--modules/og_access/og_access.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/og_access/og_access.module b/modules/og_access/og_access.module
index f64e982..d44c16d 100644
--- a/modules/og_access/og_access.module
+++ b/modules/og_access/og_access.module
@@ -194,8 +194,8 @@ function og_access_alter_nongroup_form(&$form, $form_state, $node) {
$group_node->nid = $gid;
og_load_group($group_node);
if (!empty($group_node->og_private)) {
- // Try not to show checkbox if admin likes to reduce decisions for node authors.
- $vis = variable_get('og_visibility', 0) == OG_VISIBLE_BOTH ? OG_VISIBLE_GROUPONLY : OG_VISIBLE_CHOOSE_PRIVATE;
+ // Set visibility to the appropriate private option.
+ $vis = variable_get('og_visibility', 0) == OG_VISIBLE_GROUPONLY ? OG_VISIBLE_GROUPONLY : OG_VISIBLE_CHOOSE_PRIVATE;
break;
}
}