Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

mantisbt/core filter_api.php,1.121,1.122: msg#00067

bug-tracking.mantis.cvs

Subject: mantisbt/core filter_api.php,1.121,1.122

Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26092/core

Modified Files:
filter_api.php
Log Message:
fix for 0006189: List of users (in filter) visible for unauthorized users.
- obeys view_handler_threshold setting


Index: filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- filter_api.php 11 Aug 2005 16:20:13 -0000 1.121
+++ filter_api.php 26 Aug 2005 17:05:11 -0000 1.122
@@ -1046,7 +1046,10 @@
$t_show_version = ( ON == config_get(
'show_product_version' ) )
|| ( ( AUTO == config_get(
'show_product_version' ) )
&& ( count(
version_get_all_rows_with_subs( $t_project_id ) ) > 0 ) );
-
+ # overload handler_id setting if user isn't supposed to
see them (ref #6189)
+ if ( ! access_has_project_level( config_get(
'view_handler_threshold' ), $t_project_id ) ) {
+ $t_filter['handler_id'] = array(
META_FILTER_ANY );
+ }
?>

<tr <?php PRINT "class=\"" . $t_trclass . "\""; ?>>
@@ -2585,6 +2588,7 @@
<!-- Handler -->
<select <?php PRINT $t_select_modifier;?> name="handler_id[]">
<option value="<?php echo META_FILTER_ANY ?>" <?php
check_selected( $t_filter['handler_id'], META_FILTER_ANY ); ?>>[<?php echo
lang_get( 'any' ) ?>]</option>
+ <?php if ( access_has_project_level( config_get(
'view_handler_threshold' ) ) ) { ?>
<option value="<?php echo META_FILTER_NONE ?>" <?php
check_selected( $t_filter['handler_id'], META_FILTER_NONE ); ?>>[<?php echo
lang_get( 'none' ) ?>]</option>
<?php
if ( access_has_project_level( config_get(
'handle_bug_threshold' ) ) ) {
@@ -2594,6 +2598,7 @@
}
?>
<?php print_assign_to_option_list(
$t_filter['handler_id'] ) ?>
+ <?php } ?>
</select>
<?php
}



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo