aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-11 15:34:33 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-11 15:34:33 +0000
commitb87ecf4dd98157b6c963e4249de6797deb6d560d (patch)
treebf0efde3c1c7be067104c94094e13ca7db03812b /mod/groups
parenteab6b092f65f53625141099ce459818e4bf962c6 (diff)
downloadelgg-b87ecf4dd98157b6c963e4249de6797deb6d560d.tar.gz
elgg-b87ecf4dd98157b6c963e4249de6797deb6d560d.tar.bz2
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
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/addtogroup.php3
1 files changed, 2 insertions, 1 deletions
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