includes/sessions.php
changeset 1173 b5b8e7ab0914
parent 1170 71cb87b7dc3f
child 1175 1e2c9819ede3
equal deleted inserted replaced
1172:db6b116b8ea7 1173:b5b8e7ab0914
  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         {