diff options
author | Steve Clay <steve@mrclay.org> | 2012-12-01 20:09:11 -0500 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-12-01 22:21:53 -0500 |
commit | 9168cf7df39e404516c45f77bd64b47b3c61c75d (patch) | |
tree | 1ea3f7a999d4c33b2780b06ada411a82b74f9c99 /engine | |
parent | 2f8d91ca5f506624773d96937779be449ca89aa0 (diff) | |
download | elgg-9168cf7df39e404516c45f77bd64b47b3c61c75d.tar.gz elgg-9168cf7df39e404516c45f77bd64b47b3c61c75d.tar.bz2 |
Make metadata prefetch respect access
Diffstat (limited to 'engine')
-rw-r--r-- | engine/classes/ElggVolatileMetadataCache.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/classes/ElggVolatileMetadataCache.php b/engine/classes/ElggVolatileMetadataCache.php index 24ae58d42..8a33c198d 100644 --- a/engine/classes/ElggVolatileMetadataCache.php +++ b/engine/classes/ElggVolatileMetadataCache.php @@ -279,6 +279,9 @@ class ElggVolatileMetadataCache { ), 'selects' => array('n.string AS name', 'v.string AS value'), 'order_by' => 'n_table.entity_guid, n_table.time_created ASC', + + // @todo don't know why this is necessary + 'wheres' => array(get_access_sql_suffix('n_table')), ); $data = elgg_get_metadata($options); |