logo       
Google Custom Search
    AddThis Social Bookmark Button

Recently Viewed: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

mantisbt changelog_page.php,1.8,1.9: msg#00095

Subject: mantisbt changelog_page.php,1.8,1.9
Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11554

Modified Files:
        changelog_page.php 
Log Message:
Fix 4770 - $g_limit_reporters=ON ignored in the changelog

Index: changelog_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/changelog_page.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- changelog_page.php  3 Oct 2004 12:41:09 -0000       1.8
+++ changelog_page.php  25 Oct 2004 19:51:02 -0000      1.9
@@ -8,8 +8,7 @@
        # --------------------------------------------------------
        # $Id$
        # --------------------------------------------------------
-?>
-<?php
+
        require_once( 'core.php' );
        
        $t_core_path = config_get( 'core_path' );
@@ -32,8 +31,6 @@
                }
        }
 
-?>
-<?php
        $f_project_id = gpc_get_int( 'project_id', helper_get_current_project() 
);
 
        # this page is invalid for the 'All Project' selection
@@ -50,6 +47,10 @@
        $t_project_name = project_get_field( $f_project_id, 'name' );
        $t_can_view_private = access_has_project_level( config_get( 
'private_bug_threshold' ), $f_project_id );
 
+       $t_limit_reporters = config_get( 'limit_reporters' );
+       $t_user_id = auth_get_current_user_id();
+       $t_user_access_level_is_reporter = ( current_user_get_access_level() <= 
config_get( 'report_bug_threshold' ) );
+
        $t_resolved = config_get( 'bug_resolved_status_threshold' );
        $t_bug_table    = config_get( 'mantis_bug_table' );
 
@@ -87,6 +88,13 @@
                                continue;
                        }
 
+                       # check limit_Reporter (Issue #4770)
+                       # reporters can view just issues they reported
+                       if ( ON === $t_limit_reporters && 
$t_user_access_level_is_reporter &&
+                            !bug_is_user_reporter( $t_result->fields['id'], 
$t_user_id )) {
+                         continue;
+                       }
+
                        $t_issue_id = $t_result->fields['id'];
 
                        if ( !helper_call_custom_function( 
'changelog_include_issue', array( $t_issue_id ) ) ) {



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>