From 5ca5347e6cc1d2a71412495b2bc2898fd12292e7 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 7 Aug 2008 16:16:46 +0000 Subject: Fixed access permissions wrt groups git-svn-id: https://code.elgg.org/elgg/trunk@1765 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/groups/start.php') diff --git a/mod/groups/start.php b/mod/groups/start.php index 7fb7205b0..88cdef8d1 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -211,8 +211,8 @@ */ function groups_create_event_listener($event, $object_type, $object) { - if (($event == 'create') && ($object_type == 'group') && ($object instanceof ElggGroup)) - { + //if (($event == 'create') && ($object_type == 'group') && ($object instanceof ElggGroup)) + //{ $group_id = create_access_collection(elgg_echo('groups:group') . ": " . $object->name); if ($group_id) { @@ -220,7 +220,7 @@ } else return false; - } + //} return true; } @@ -283,7 +283,7 @@ $group = $object['group']; $user = $object['user']; $acl = $group->group_acl; - + add_user_to_access_collection($user->guid, $acl); return true; -- cgit v1.2.3