equal
deleted
inserted
replaced
4354 // permissions to override group permissions. |
4354 // permissions to override group permissions. |
4355 $bs .= implode(" OR\n ", $q) . ' ) AND (' . $pg_info . ' ( page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\' ) ) |
4355 $bs .= implode(" OR\n ", $q) . ' ) AND (' . $pg_info . ' ( page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\' ) ) |
4356 ORDER BY target_type ASC, page_id ASC, namespace ASC;'; |
4356 ORDER BY target_type ASC, page_id ASC, namespace ASC;'; |
4357 |
4357 |
4358 $q = $session->sql($bs); |
4358 $q = $session->sql($bs); |
4359 if ( $row = $db->fetchrow() ) |
4359 if ( $row = $db->fetchrow($q, true) ) |
4360 { |
4360 { |
4361 do { |
4361 do |
|
4362 { |
4362 $rules = $session->string_to_perm($row['rules']); |
4363 $rules = $session->string_to_perm($row['rules']); |
4363 $is_everyone = ( $row['target_type'] == ACL_TYPE_GROUP && $row['target_id'] == 1 ); |
4364 $is_everyone = ( $row['target_type'] == ACL_TYPE_GROUP && $row['target_id'] == 1 ); |
4364 // log where this comes from |
4365 // log where this comes from |
4365 if ( $row['namespace'] == '__PageGroup' ) |
4366 if ( $row['namespace'] == '__PageGroup' ) |
4366 { |
4367 { |