aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index d4649c90b..f8cff6a8a 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -447,6 +447,9 @@ function groups_join_group($group, $user) {
elgg_set_ignore_access($ia);
if ($result) {
+ // flush user's access info so the collection is added
+ get_access_list($user->guid, 0, true);
+
// Remove any invite or join request flags
remove_entity_relationship($group->guid, 'invited', $user->guid);
remove_entity_relationship($user->guid, 'membership_request', $group->guid);