aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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;
}