View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004901 | mantisbt | administration | public | 2004-11-24 10:23 | 2004-12-11 03:01 |
Reporter | jjtest | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.1 | ||||
Fixed in Version | 0.19.2 | ||||
Summary | 0004901: When $g_create_project_threshold = MANAGER, and manager creates project, he should automatically be added to project as manager | ||||
Description | When $g_create_project_threshold = MANAGER, and manager creates project, he should automatically be added to that project AS MANAGER. Now,after he's added the project, he has to call an admin to add him to the project he just created... which is what I was trying to avoid by letting a MANAGER add a project in the first place. And I don't want all managers being automatically added to all projects...just the ones THEY manage. Thanks. jj | ||||
Tags | No tags attached. | ||||
Attached Files | 4901.diff (974 bytes)
Index: manage_proj_create.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_create.php,v retrieving revision 1.5 diff -u -r1.5 manage_proj_create.php --- manage_proj_create.php 11 Jan 2004 07:16:07 -0000 1.5 +++ manage_proj_create.php 1 Dec 2004 13:42:12 -0000 @@ -19,7 +19,13 @@ $f_status = gpc_get_int( 'status' ); $f_file_path = gpc_get_string( 'file_path', '' ); - project_create( $f_name, $f_description, $f_status, $f_view_state, $f_file_path ); + $t_project_id = project_create( $f_name, $f_description, $f_status, $f_view_state, $f_file_path ); + + if ( ( $f_view_state == VS_PRIVATE ) && ( false === current_user_is_administrator() ) ) { + $t_access_level = access_get_global_level(); + $t_current_user_id = auth_get_current_user_id(); + project_add_user( $t_project_id, $t_current_user_id, $t_access_level ); + } $t_redirect_url = 'manage_proj_page.php'; | ||||