- Patch #165160 by chx: restored access checking.

6.x
Dries Buytaert 2007-09-03 16:55:00 +00:00
parent 6fa344f5b1
commit d33f3df967
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ function drupal_is_denied($type, $mask) {
// (allowed).
// The use of ORDER BY / LIMIT is more efficient than "MAX(status) = 0"
// in PostgreSQL <= 8.0.
return (bool) db_result(db_query_range("SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM {access} WHERE type = '%s' AND LOWER(mask) LIKE LOWER('%s') ORDER BY status DESC", $type, $mask, 0, 1));
return (bool) db_result(db_query_range("SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM {access} WHERE type = '%s' AND LOWER('%s') LIKE LOWER(mask) ORDER BY status DESC", $type, $mask, 0, 1));
}
/**