aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/addtogroup.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-19 15:19:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-19 15:19:26 +0000
commit2037fc54b25cca2fef3ec24e33be01924fcfb555 (patch)
tree954527e1cfb38c92f2852b3b799360623b7b348b /mod/groups/actions/addtogroup.php
parentbe4ed8d5d6bf5f021bd655153d04303f7c09f44d (diff)
downloadelgg-2037fc54b25cca2fef3ec24e33be01924fcfb555.tar.gz
elgg-2037fc54b25cca2fef3ec24e33be01924fcfb555.tar.bz2
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
Diffstat (limited to 'mod/groups/actions/addtogroup.php')
-rw-r--r--mod/groups/actions/addtogroup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php
index 0b99ea917..4ebb4eee0 100644
--- a/mod/groups/actions/addtogroup.php
+++ b/mod/groups/actions/addtogroup.php
@@ -29,6 +29,8 @@
$user = get_entity($u_id);
$group = get_entity($group_guid);
+ set_page_owner($group->guid);
+
if ( $user && $group) {
//if (get_loggedin_userid() == $group->owner_guid)