aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 14:03:40 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 14:03:40 +0000
commit945da1afe0b3315a289f9694311ff878b5a65a7b (patch)
tree295d7860e9806ac505a5ccfbfebc07fb035f2aff /mod/groups/actions
parent1d023ffb53e1383d2aeb5a44fa76daae959bbe8d (diff)
downloadelgg-945da1afe0b3315a289f9694311ff878b5a65a7b.tar.gz
elgg-945da1afe0b3315a289f9694311ff878b5a65a7b.tar.bz2
Closes #761, #718: Group permissions now made much much simpler.
git-svn-id: https://code.elgg.org/elgg/trunk@2744 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/edit.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php
index e30fc7fee..6b66ab9f1 100644
--- a/mod/groups/actions/edit.php
+++ b/mod/groups/actions/edit.php
@@ -57,14 +57,12 @@
// Group membership - should these be treated with same constants as access permissions?
switch (get_input('membership'))
{
- case 0: $group->membership = ACCESS_PRIVATE;
- case 1 :$group->membership = ACCESS_LOGGED_IN; break;
- case 2:
- default: $group->membership = ACCESS_PUBLIC;
+ case 2: $group->membership = ACCESS_PUBLIC; break;
+ default: $group->membership = ACCESS_PRIVATE;
}
- // Get access
- $group->access_id = get_input('access_id', ACCESS_PRIVATE);
+ // Set access - all groups are public from elgg's point of view.
+ $group->access_id = 2;
// Set group tool options
$group->files_enable = get_input('files_enable', 'yes');