logo       


mantisbt summary_page.php,1.51,1.52: msg#00122

Subject: mantisbt summary_page.php,1.51,1.52
Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19181

Modified Files:
        summary_page.php 
Log Message:
Add comment


Index: summary_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/summary_page.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- summary_page.php    25 Jul 2007 08:27:57 -0000      1.51
+++ summary_page.php    25 Jul 2007 15:53:32 -0000      1.52
@@ -26,6 +26,8 @@
 
        $t_user_id = auth_get_current_user_id();
 
+       # @@@ giallu: this block of code is duplicated from 
helper_project_specific_where
+       # the only diff is the commented line below: can we do better than this 
?
        if ( ALL_PROJECTS == $f_project_id ) {
                $t_topprojects = $t_project_ids = user_get_accessible_projects( 
$t_user_id );
                foreach ( $t_topprojects as $t_project ) {
@@ -34,6 +36,7 @@
 
                $t_project_ids = array_unique( $t_project_ids );
        } else {
+               # access_ensure_project_level( VIEWER, $p_project_id );
                $t_project_ids = user_get_all_accessible_subprojects( 
$t_user_id, $f_project_id );
                array_unshift( $t_project_ids, $f_project_id );
        }
@@ -47,6 +50,7 @@
        } else {
                $specific_where = ' project_id IN (' . join( ',', 
$t_project_ids ) . ')';
        }
+       # end @@@ block
 
        $t_bug_table = config_get( 'mantis_bug_table' );
        $t_history_table = config_get( 'mantis_bug_history_table' );


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

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