aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-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 df8cc2f7f..ef99f764a 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -2665,7 +2665,7 @@ function can_edit_entity($entity_guid, $user_guid = 0) {
$return = false;
// Test user if possible - should default to false unless a plugin hook says otherwise
- if (!is_null($user)) {
+ if ($user) {
if ($entity->getOwner() == $user->getGUID()) {
$return = true;
}