aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/edit.php')
-rw-r--r--mod/groups/actions/edit.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php
index f32af9eb3..be8d250da 100644
--- a/mod/groups/actions/edit.php
+++ b/mod/groups/actions/edit.php
@@ -61,8 +61,18 @@
default: $group->membership = ACCESS_PRIVATE;
}
- // Set access - all groups are public from elgg's point of view.
- $group->access_id = 2;
+ // Set access - all groups are public from elgg's point of view, unless the override is in place
+
+ if (get_plugin_setting('hidden_groups', 'groups') == 'yes')
+ {
+ $visibility = (int)get_input('vis','',false);
+
+ $group->access_id = $visibility;
+
+ $group->access_id;
+ }
+ else
+ $group->access_id = 2;
// Set group tool options
//$group->files_enable = get_input('files_enable', 'yes');