Closed (fixed)
Project:
Domain
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2009 at 15:29 UTC
Updated:
30 Nov 2009 at 21:30 UTC
Jump to comment: Most recent file
In the db_rewrite_sql we have this code:
// In any of the following cases, do not enforce any rules.
if (!$admin_force || empty($query) || $primary_field != 'nid' || !user_access('administer nodes') || domain_grant_all()) {
return;
}
The empty($query) was a safeguard against, well, empty queries, but node searching invokes db_rewrite_sql() without passing a $query, so we have to remove that if searching is to work properly.
Testing needed to see if this introduces any errors.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 624296-query-d6.patch | 889 bytes | agentrickard |
| #1 | 624296-query-d5.patch | 858 bytes | agentrickard |
Comments
Comment #1
agentrickardPatch for D5.
Comment #2
agentrickardD6 version.
Comment #3
agentrickardCommitted to D6 and HEAD.
Comment #4
agentrickardCommitted to D5.