From: Victor B. <vb...@us...> - 2005-06-28 11:04:16
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2442 Modified Files: bug_relationship_add.php bug_relationship_delete.php config_defaults_inc.php view_all_inc.php Log Message: - Fixed #5523: add option to put filter at bottom of display, or eliminate entirely. - Allowed anonymous user to add/delete relationships if the anonymous account has the required access level. Index: bug_relationship_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_relationship_add.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- bug_relationship_add.php 25 Oct 2004 19:45:04 -0000 1.4 +++ bug_relationship_add.php 28 Jun 2005 11:04:04 -0000 1.5 @@ -21,10 +21,6 @@ $f_src_bug_id = gpc_get_int( 'src_bug_id' ); $f_dest_bug_id = gpc_get_int( 'dest_bug_id' ); - if ( current_user_is_anonymous()) { - access_denied(); - } - # user has access to update the bug... access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_src_bug_id ); Index: view_all_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_all_inc.php,v retrieving revision 1.159 retrieving revision 1.160 diff -u -d -r1.159 -r1.160 --- view_all_inc.php 24 May 2005 23:22:48 -0000 1.159 +++ view_all_inc.php 28 Jun 2005 11:04:05 -0000 1.160 @@ -32,8 +32,12 @@ $t_columns = helper_call_custom_function( 'get_columns_to_view', array( COLUMNS_TARGET_VIEW_PAGE ) ); $col_count = sizeof( $t_columns ); + $t_filter_position = config_get( 'filter_position' ); + # -- ====================== FILTER FORM ========================= -- - filter_draw_selection_area( $f_page_number ); + if ( ( $t_filter_position & FILTER_POSITION_TOP ) == FILTER_POSITION_TOP ) { + filter_draw_selection_area( $f_page_number ); + } # -- ====================== end of FILTER FORM ================== -- @@ -191,4 +195,10 @@ if ( STATUS_LEGEND_POSITION_BOTTOM == config_get( 'status_legend_position' ) ) { html_status_legend(); } + + # -- ====================== FILTER FORM ========================= -- + if ( ( $t_filter_position & FILTER_POSITION_BOTTOM ) == FILTER_POSITION_BOTTOM ) { + filter_draw_selection_area( $f_page_number ); + } + # -- ====================== end of FILTER FORM ================== -- ?> Index: bug_relationship_delete.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_relationship_delete.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- bug_relationship_delete.php 12 Feb 2005 20:01:04 -0000 1.8 +++ bug_relationship_delete.php 28 Jun 2005 11:04:05 -0000 1.9 @@ -27,10 +27,6 @@ $f_rel_id = gpc_get_int( 'rel_id' ); $f_bug_id = gpc_get_int( 'bug_id' ); - if ( current_user_is_anonymous()) { - access_denied(); - } - # user has access to update the bug... access_ensure_bug_level( config_get( 'update_bug_threshold' ), $f_bug_id ); Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.273 retrieving revision 1.274 diff -u -d -r1.273 -r1.274 --- config_defaults_inc.php 15 Jun 2005 14:46:19 -0000 1.273 +++ config_defaults_inc.php 28 Jun 2005 11:04:05 -0000 1.274 @@ -441,6 +441,10 @@ # --- see constant_inc.php. (*: BOTTOM or TOP) $g_status_legend_position = STATUS_LEGEND_POSITION_BOTTOM; + # --- Position of the filter box, can be: FILTER_POSITION_* + # FILTER_POSITION_TOP, FILTER_POSITION_BOTTOM, or 0 for none. + $g_filter_position = FILTER_POSITION_TOP; + # --- Show a legend with percentage of bug status # --- x% of all bugs are new, y% of all bugs are assigned and so on. # --- If set to ON it will printed below the status colour legend. |