Skip to content

Commit

Permalink
We should ensure that the project actually exists before adding confi…
Browse files Browse the repository at this point in the history
…g settings.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5234 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed May 3, 2008
1 parent 46f6326 commit c257019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions adm_config_set.php
Expand Up @@ -42,6 +42,7 @@
if ( $f_project_id == ALL_PROJECTS ) {
access_ensure_global_level( config_get('set_configuration_threshold' ) );
} else {
project_ensure_exists( $f_project_id );
access_ensure_project_level( config_get('set_configuration_threshold' ), $f_project_id );
}

Expand Down
1 change: 1 addition & 0 deletions manage_config_columns_set.php
Expand Up @@ -61,6 +61,7 @@
$t_project_id = ALL_PROJECTS;
} else {
$t_project_id = $f_project_id;
project_ensure_exists( $t_project_id );
}

# Calculate the user id to set the configuration for.
Expand Down

0 comments on commit c257019

Please sign in to comment.