diff options
Diffstat (limited to 'mod/groups/actions/invite.php')
-rw-r--r-- | mod/groups/actions/invite.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |