aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/river.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 036ceafd4..fd6e97b12 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -373,7 +373,8 @@ function elgg_row_to_elgg_river_item($row) {
function elgg_river_get_access_sql() {
// rewrite default access where clause to work with river table
return str_replace("and enabled='yes'", '',
- str_replace('owner_guid', 'subject_guid', get_access_sql_suffix()));
+ str_replace('owner_guid', 'rv.subject_guid',
+ str_replace('access_id', 'rv.access_id', get_access_sql_suffix())));
}
/**