From b87ecf4dd98157b6c963e4249de6797deb6d560d Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 11 May 2009 15:34:33 +0000 Subject: Closes #944: Changed owner check to a canEdit check on the group. git-svn-id: https://code.elgg.org/elgg/trunk@3280 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/addtogroup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/groups/actions') diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php index 2cf242102..625e2f3c9 100644 --- a/mod/groups/actions/addtogroup.php +++ b/mod/groups/actions/addtogroup.php @@ -29,7 +29,8 @@ if ( $user && $group) { - if (get_loggedin_userid() == $group->owner_guid) + //if (get_loggedin_userid() == $group->owner_guid) + if ($group->canEdit()) { // If the group is open or the user has requested membership -- cgit v1.2.3