logo       

mantisbt/core project_api.php,1.66,1.67: msg#00114

Subject: mantisbt/core project_api.php,1.66,1.67
Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23186/core

Modified Files:
        project_api.php 
Log Message:
Fix #5287: Permissions listed on 'Manage Project' page are global, not 
per-project.


Index: project_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/project_api.php,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- project_api.php     14 Feb 2005 10:21:36 -0000      1.66
+++ project_api.php     28 Feb 2005 00:33:49 -0000      1.67
@@ -473,7 +473,7 @@
                $t_project_clause = ( $c_project_id != ALL_PROJECTS ) ? ' AND 
p.id = ' . $c_project_id : '';
 
                $t_users = array();
-               $query = "SELECT DISTINCT u.id, u.username, u.realname, 
u.access_level
+               $query = "SELECT DISTINCT u.id, u.username, u.realname
                                        FROM    $t_user_table u,
                                                        $t_project_table p LEFT 
JOIN $t_project_user_list_table l ON p.id=l.project_id
                                        WHERE   ( ( p.view_state='$t_pub' AND 
u.access_level >= $t_access_level )
@@ -486,6 +486,7 @@
                $t_row_count = db_num_rows( $result );
                for ( $i=0 ; $i < $t_row_count ; $i++ ) {
                        $row = db_fetch_array( $result );
+                       $row['access_level'] = access_get_project_level( 
$p_project_id, $row['id'] );
                        $t_users[] = $row;
                }
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


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

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
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