aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-23 19:58:27 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-23 19:58:27 -0500
commit2c4e77c49fc43add737daaa76aef710de8d01d30 (patch)
tree76492749d1746c9ef6697b7897e80f9a828c56db /mod/groups/actions
parent926e11996080ee84c6c405910c06615b8db55ff5 (diff)
downloadelgg-2c4e77c49fc43add737daaa76aef710de8d01d30.tar.gz
elgg-2c4e77c49fc43add737daaa76aef710de8d01d30.tar.bz2
Fixes #1922 can now delete invites to invisible groups
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/groups/membership/delete_invite.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/groups/actions/groups/membership/delete_invite.php b/mod/groups/actions/groups/membership/delete_invite.php
index 4b654f0b6..d21aa0309 100644
--- a/mod/groups/actions/groups/membership/delete_invite.php
+++ b/mod/groups/actions/groups/membership/delete_invite.php
@@ -9,7 +9,11 @@ $user_guid = get_input('user_guid', elgg_get_logged_in_user_guid());
$group_guid = get_input('group_guid');
$user = get_entity($user_guid);
+
+// invisible groups require overriding access to delete invite
+$old_access = elgg_set_ignore_access(true);
$group = get_entity($group_guid);
+elgg_set_ignore_access($old_access);
// If join request made
if (check_entity_relationship($group->guid, 'invited', $user->guid)) {