Skip to content

Commit

Permalink
Fixed #7467: Port 6637: Disabled projects don't appear under parent p…
Browse files Browse the repository at this point in the history
…roject

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_0_0@4172 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Sep 23, 2006
1 parent 7bffed3 commit 52c775b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions core/current_user_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: current_user_api.php,v 1.28 2005-04-27 13:31:06 vboctor Exp $
# $Id: current_user_api.php,v 1.28.14.1 2006-09-23 06:48:45 vboctor Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -61,14 +61,14 @@ function current_user_set_default_project( $p_project_id ) {
# --------------------
# Return an array of projects to which the currently logged in user
# has access
function current_user_get_accessible_projects() {
return user_get_accessible_projects( auth_get_current_user_id() );
function current_user_get_accessible_projects( $p_show_disabled = false ) {
return user_get_accessible_projects( auth_get_current_user_id(), $p_show_disabled );
}
# --------------------
# Return an array of subprojects of the specified project to which the
# currently logged in user has access
function current_user_get_accessible_subprojects( $p_project_id ) {
return user_get_accessible_subprojects( auth_get_current_user_id(), $p_project_id );
function current_user_get_accessible_subprojects( $p_project_id, $p_show_disabled = false ) {
return user_get_accessible_subprojects( auth_get_current_user_id(), $p_project_id, $p_show_disabled );
}
# --------------------
# Return an array of subprojects of the specified project to which the
Expand Down
6 changes: 3 additions & 3 deletions manage_proj_edit_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: manage_proj_edit_page.php,v 1.92.6.1.4.1 2006-09-23 06:30:22 vboctor Exp $
# $Id: manage_proj_edit_page.php,v 1.92.6.1.4.2 2006-09-23 06:48:45 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -164,7 +164,7 @@

<!-- Subprojects -->
<?php
$t_subproject_ids = current_user_get_accessible_subprojects( $f_project_id );
$t_subproject_ids = current_user_get_accessible_subprojects( $f_project_id, /* show_disabled */ true );

if ( Array() != $t_subproject_ids ) {
?>
Expand Down Expand Up @@ -229,7 +229,7 @@
<input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" />
<select name="subproject_id">
<?php
$t_all_subprojects = project_hierarchy_get_subprojects( $f_project_id );
$t_all_subprojects = project_hierarchy_get_subprojects( $f_project_id, /* $p_show_disabled */ true );
$t_all_subprojects[] = $f_project_id;
$t_manage_access = config_get( 'manage_project_threshold' );

Expand Down

0 comments on commit 52c775b

Please sign in to comment.