Skip to content

Commit

Permalink
fixed: invalid type check for entity access
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed May 3, 2016
1 parent 29c36a2 commit 35937f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/ColdTrick/TagTools/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 35937f0

Please sign in to comment.