Skip to content

Commit

Permalink
Fix #5287: Permissions listed on 'Manage Project' page are global, no…
Browse files Browse the repository at this point in the history
…t per-project.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3343 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Jeroen Latour committed Feb 28, 2005
1 parent a6d4e38 commit 45ce92e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/project_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: project_api.php,v 1.66 2005-02-14 10:21:36 vboctor Exp $
# $Id: project_api.php,v 1.67 2005-02-28 00:33:49 jlatour Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -473,7 +473,7 @@ function project_get_all_user_rows( $p_project_id = ALL_PROJECTS, $p_access_leve
$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 )
Expand All @@ -486,6 +486,7 @@ function project_get_all_user_rows( $p_project_id = ALL_PROJECTS, $p_access_leve
$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;
}

Expand Down

0 comments on commit 45ce92e

Please sign in to comment.