aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-26 17:56:05 +0000
committerkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-26 17:56:05 +0000
commita13d5f5407736e0f9811a541a20bbfe08747970d (patch)
tree677f0b94062a85e3e406808429d92ede303c6a2f /engine/lib/entities.php
parent6e3a38ff9128db14b5b7df66e942670068243047 (diff)
downloadelgg-a13d5f5407736e0f9811a541a20bbfe08747970d.tar.gz
elgg-a13d5f5407736e0f9811a541a20bbfe08747970d.tar.bz2
Fixes to container permissions and widgets to allow default widgets to work with the Elgg permissions system.
git-svn-id: https://code.elgg.org/elgg/trunk@2968 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 3597040c9..e9747d15c 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1321,14 +1321,14 @@
$container = get_entity($container_guid);
- if (($container) && ($user))
+ if ($container)
{
// If the user can edit the container, they can also write to it
if ($container->canEdit($user_guid)) return true;
// Basics, see if the user is a member of the group.
- if ($container instanceof ElggGroup) {
+ if ($user && $container instanceof ElggGroup) {
if (!$container->isMember($user)) {
return false;
} else {