aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/join.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/join.php')
-rw-r--r--mod/groups/actions/join.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php
index 77d2e3021..84e770065 100644
--- a/mod/groups/actions/join.php
+++ b/mod/groups/actions/join.php
@@ -26,7 +26,7 @@
if (($user instanceof ElggUser) && ($group instanceof ElggGroup))
{
- if ($group->access_id == 2)
+ if ($group->isPublicMembership())
{
if ($group->join($user))
{