From 2037fc54b25cca2fef3ec24e33be01924fcfb555 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Jun 2010 15:19:26 +0000 Subject: Refs #2294 - groups_write_acl_plugin_hook depends on page owner since [5782] and group actions seem to end up with the group owner as the page owner. This is a temporary fix for this issue. All group activity since [5782] on installs now have corrupted group access lists. I have a script to fix this that I can share. git-svn-id: http://code.elgg.org/elgg/trunk@6523 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/joinrequest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/groups/actions/joinrequest.php') diff --git a/mod/groups/actions/joinrequest.php b/mod/groups/actions/joinrequest.php index 51c400223..e3c83b169 100644 --- a/mod/groups/actions/joinrequest.php +++ b/mod/groups/actions/joinrequest.php @@ -30,6 +30,8 @@ if (in_array($group_guid, $invitations)) { $user = get_entity($user_guid); $group = get_entity($group_guid); +set_page_owner($group->guid); + // If not a member of this group if (($group) && ($user) && (!$group->isMember($user))) { -- cgit v1.2.3