diff -r d807dcd7aed7 -r a8891e108c95 includes/pageutils.php --- a/includes/pageutils.php Sun Aug 26 16:48:15 2007 -0400 +++ b/includes/pageutils.php Sun Aug 26 20:45:33 2007 -0400 @@ -1943,11 +1943,25 @@ { echo ''; } + // page group selector + $groupsel = ''; + if ( count($response['page_groups']) > 0 ) + { + $groupsel = '

+

'; + } + echo '

' . $template->username_field('data[target_id_user]') . '

What should this access rule control?

+ ' . $groupsel . '

@@ -1999,7 +2013,7 @@ echo '

Create new rule

'; } $type = ( $response['target_type'] == ACL_TYPE_GROUP ) ? 'group' : 'user'; - $scope = ( $response['page_id'] ) ? 'this page' : 'this entire site'; + $scope = ( $response['page_id'] ) ? ( $response['namespace'] == '__PageGroup' ? 'this group of pages' : 'this page' ) : 'this entire site'; echo 'This panel allows you to edit what the '.$type.' "'.$response['target_name'].'" can do on '.$scope.'. Unless you set a permission to "Deny", these permissions may be overridden by other rules.'; echo $formstart; $parser = $template->makeParserText( $response['template']['acl_field_begin'] ); @@ -2047,7 +2061,7 @@ -    + ' . ( ( $response['type'] == 'edit' ) ? '  ' : '' ) . '
'; echo $formend; break; @@ -2097,6 +2111,11 @@ $parms['page_id'] = false; $parms['namespace'] = false; } + else if ( $parms['scope'] == 'page_group' ) + { + $parms['page_id'] = $parms['pg_id']; + $parms['namespace'] = '__PageGroup'; + } break; }