From f19305b23bba276ef2601227d1e12f6beceef8ae Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Nov 2011 16:22:10 -0400 Subject: Fixes #4018 Refs #3722 merged up to 1.7.14 into master --- engine/lib/entities.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 0e89b34bd..711fcbbd7 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -468,12 +468,10 @@ function can_write_to_container($user_guid = 0, $container_guid = 0, $type = 'al $return = true; } - // Basics, see if the user is a member of the group. + // If still not approved, see if the user is a member of the group // @todo this should be moved to the groups plugin/library - if ($user && $container instanceof ElggGroup) { - if (!$container->isMember($user)) { - $return = false; - } else { + if (!$return && $user && $container instanceof ElggGroup) { + if ($container->isMember($user)) { $return = true; } } -- cgit v1.2.3