Commit f7039a67 authored by Steven Wittens's avatar Steven Wittens

- #25395: Allow for more integers in node_access grant_x columns

parent 64299d74
......@@ -1881,7 +1881,7 @@ function node_access($op, $node = NULL, $uid = NULL) {
$grants[] = "'". $realm . $gid ."'";
}
}
$sql .= implode(',', $grants) .') AND grant_'. $op .' = 1';
$sql .= implode(',', $grants) .') AND grant_'. $op .' >= 1';
$result = db_query($sql, $node->nid);
return (db_result($result));
}
......
......@@ -1881,7 +1881,7 @@ function node_access($op, $node = NULL, $uid = NULL) {
$grants[] = "'". $realm . $gid ."'";
}
}
$sql .= implode(',', $grants) .') AND grant_'. $op .' = 1';
$sql .= implode(',', $grants) .') AND grant_'. $op .' >= 1';
$result = db_query($sql, $node->nid);
return (db_result($result));
}
......
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