aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 18:37:17 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 18:37:17 +0000
commitc0e6998b01ddc9b87fd0869f3662cef3bca5b33b (patch)
tree727c4a7e78b6989282aac5f1e6aa250f73b5fd94 /engine/lib/entities.php
parent6c10be39372a8b282d255f940b4a9237b213e6b4 (diff)
downloadelgg-c0e6998b01ddc9b87fd0869f3662cef3bca5b33b.tar.gz
elgg-c0e6998b01ddc9b87fd0869f3662cef3bca5b33b.tar.bz2
Solved write issues in groups for non-admin users.
git-svn-id: https://code.elgg.org/elgg/trunk@1808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php9
1 files changed, 7 insertions, 2 deletions
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);