Commit ae917094 authored by salvis's avatar salvis

Fix failure to detect some 'alien' {node_access} records (records that should...

Fix failure to detect some 'alien' {node_access} records (records that should not be in the table and would be removed by rebuilding permissions).
parent 8d9792bd
......@@ -295,10 +295,10 @@ function devel_node_access_block($op = 'list', $delta = 0) {
}
}
// check for grants in the node_access table that aren't returned by node_access_acquire_grants()
$found = FALSE;
if (isset($active_grants[$nid])) {
foreach ($active_grants[$nid] as $realm => $active_grants_realm) {
foreach ($active_grants_realm as $gid => $active_grant) {
$found = FALSE;
$count_nonempty_grants = 0;
foreach ($acquired_grants_nid as $priority => $acquired_grants_nid_priority) {
if (isset($acquired_grants_nid_priority[$realm][$gid])) {
......
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