From 35937f0801af49a5b56a95565d09223898137f6f Mon Sep 17 00:00:00 2001 From: Jerome Bakker Date: Tue, 3 May 2016 10:54:32 +0200 Subject: [PATCH] fixed: invalid type check for entity access --- classes/ColdTrick/TagTools/Enqueue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/ColdTrick/TagTools/Enqueue.php b/classes/ColdTrick/TagTools/Enqueue.php index 0f417f4..53eca68 100644 --- a/classes/ColdTrick/TagTools/Enqueue.php +++ b/classes/ColdTrick/TagTools/Enqueue.php @@ -91,7 +91,8 @@ protected static function validateEntity($entity_guid) { return false; } - if ($entity_row->access_id === ACCESS_PRIVATE) { + $entity_access = sanitise_int($entity_row->access_id); + if ($entity_access === ACCESS_PRIVATE) { // private entity return false; }