Commit 47b0e38c authored by joseph.olstad's avatar joseph.olstad Committed by albertski

Issue #2854654 by joseph.olstad: denote all table names with curly braces

parent 74225a15
......@@ -37,6 +37,6 @@ class views_handler_filter_views_published_or_roles_current_user_has_roles exten
$roles = array_keys($this->value);
$this->query->add_where_expression(
$this->options['group'],
'***CURRENT_USER*** IN (SELECT users_roles.uid FROM users_roles WHERE users_roles.rid IN (:roles))', array(':roles' => $roles));
'***CURRENT_USER*** IN (SELECT ur.uid FROM {users_roles} ur WHERE ur.rid IN (:roles))', array(':roles' => $roles));
}
}
......@@ -43,6 +43,6 @@ class views_handler_filter_views_published_or_roles_has_roles extends views_hand
OR
***BYPASS_NODE_ACCESS*** = 1
OR
***CURRENT_USER*** IN (SELECT users_roles.uid FROM users_roles WHERE users_roles.rid IN (:roles))", array(':roles' => $roles));
***CURRENT_USER*** IN (SELECT ur.uid FROM {users_roles} ur WHERE ur.rid IN (:roles))", array(':roles' => $roles));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment