From c0e6998b01ddc9b87fd0869f3662cef3bca5b33b Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 8 Aug 2008 18:37:17 +0000 Subject: Solved write issues in groups for non-admin users. git-svn-id: https://code.elgg.org/elgg/trunk@1808 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index d7cc502ed..c938727ff 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1158,8 +1158,13 @@ if ($container->canEdit()) return true; // Basics, see if the user is a member of the group. - if ($container instanceof ElggGroup) - if (!$container->isMember($user)) return false; + if ($container instanceof ElggGroup) { + if (!$container->isMember($user)) { + return false; + } else { + return true; + } + } // See if anyone else has anything to say return trigger_plugin_hook('container_permissions_check',$entity_type,array('container' => $container, 'user' => $user), false); -- cgit v1.2.3