From 53305ecf5ccd83618faebedb1ae9ef8e0ce61d8c Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 18 Jun 2010 21:19:11 +0000 Subject: Merged r6506:6509 from 1.7 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6516 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/invite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/groups/actions/invite.php b/mod/groups/actions/invite.php index d2fd75c28..ba63b8e14 100644 --- a/mod/groups/actions/invite.php +++ b/mod/groups/actions/invite.php @@ -31,7 +31,7 @@ if (sizeof($user_guid)) if ( $user && $group) { - if (get_loggedin_userid() == $group->owner_guid) + if (($group instanceof ElggGroup) && ($group->canEdit())) { if (!check_entity_relationship($group->guid, 'invited', $user->guid)) { -- cgit v1.2.3