Skip to content

Commit

Permalink
Added ability to limit reporters to see only their bugs. Security wil…
Browse files Browse the repository at this point in the history
…l need to be tightened later.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@530 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Nov 27, 2001
1 parent 131b259 commit 0ace012
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -17,6 +17,7 @@ Mantis
* Updated TROUBLESHOOTING file.
* Added file_type field to mantis_bug_file_table and mantis_project_file_table.
* Added LDAP login support.
* Added ability to limit reporters to see only their bugs. Security will need to be tightened later.

11.04.2001 - 0.15.12

Expand Down
4 changes: 4 additions & 0 deletions config_inc.php
Expand Up @@ -372,6 +372,10 @@
# CRYPT or PLAIN or MD5 or LDAP
$g_login_method = CRYPT;

# --- limit reporters -------------
# Set to 1 if you wish to limit reporters to only viewing bugs that they report.
$g_limit_reporters = 1;

##############################
### Mantis Color Variables ###
##############################
Expand Down
5 changes: 5 additions & 0 deletions view_all_bug_page.php3
Expand Up @@ -103,6 +103,11 @@
$f_dir = $t_setting_arr[10];
}

# Limit reporters to only see their reported bugs
if ( 1 == $g_limit_reporters ) {
$f_user_id = get_current_user_field( "id" );
}

# Build our query string based on our viewing criteria

$query = "SELECT * FROM $g_mantis_bug_table";
Expand Down

0 comments on commit 0ace012

Please sign in to comment.