From 4bb42e5e8e425aae0ba0e668a06e752431fb1c35 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 4 Mar 2011 01:39:41 +0000 Subject: fixed bug in accepting invitations to closed groups git-svn-id: http://code.elgg.org/elgg/trunk@8574 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/groups/membership/join.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/groups') diff --git a/mod/groups/actions/groups/membership/join.php b/mod/groups/actions/groups/membership/join.php index 3c4571a59..edcffb507 100644 --- a/mod/groups/actions/groups/membership/join.php +++ b/mod/groups/actions/groups/membership/join.php @@ -28,7 +28,7 @@ if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) { // anyone can join public groups and admins can join any group $join = true; } else { - if (check_entity_relationship($user->guid, 'membership_request', $group->guid)) { + if (check_entity_relationship($group->guid, 'invited', $user->guid)) { // user has invite to closed group $join = true; } -- cgit v1.2.3