aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-04 01:39:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-04 01:39:41 +0000
commit4bb42e5e8e425aae0ba0e668a06e752431fb1c35 (patch)
treeefad0fb8a5a4f08f7a609052c7a02bec6e1cbb3a /mod/groups
parent1bcc2d793704bf43f6ecf9a01259e9cd6f6f8b2a (diff)
downloadelgg-4bb42e5e8e425aae0ba0e668a06e752431fb1c35.tar.gz
elgg-4bb42e5e8e425aae0ba0e668a06e752431fb1c35.tar.bz2
fixed bug in accepting invitations to closed groups
git-svn-id: http://code.elgg.org/elgg/trunk@8574 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/groups/membership/join.php2
1 files changed, 1 insertions, 1 deletions
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;
}