aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 4f401ebc6..c4136de49 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -876,7 +876,7 @@
$user = get_entity($user_guid);
}
$entity = get_entity($entity_guid);
-return true;
+
if ($entity->getOwner() == $user->getGUID()) return true;
if ($entity->type == "user" && $entity->getGUID() == $user->getGUID()) return true;