Page 1 of 1

hide assigned to reporters and testers

Posted: 27 Jul 2005, 12:57
by brunette
Hi,

I study actually Mantis ... for me it's the best BTS for the moment !!!
I work in an IT Enterprise in France and we would like to use Mantis.

But I have a problem ;-)

The testers and the reporters see the developer who is assigned to the request. I would like to hide this information.

How can I do ?

I see in config_defaults-inc.php

Code: Select all

# access level needed to view handler in bug reports and notification email
# @@@ yarick123: now it is implemented for notification email only
$g_view_handler_threshold  = VIEWER;
Thanks for your help

Posted: 27 Jul 2005, 14:05
by vboctor
In the bug_view_page.php and bug_view_advanced_page.php:

- Search for Handler.
- Replace

Code: Select all

print_user_with_subject( $t_bug->handler_id, $f_bug_id );
With

Code: Select all

if ( access_has_bug_level( config_get( 'view_handler_threshold' ), $f_bug_id ) {
    print_user_with_subject( $t_bug->handler_id, $f_bug_id );
} else {
    if ( $t_bug->handler_id > 0 ) {
        echo 'assigned';
    } else {
        echo 'not assigned';
    }
}
You will also need to set $g_view_history_threshold to the appropriate threshold, otherwise, they will see the handler's name in the history.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/

Posted: 28 Jul 2005, 07:47
by brunette
thanks for your help !!!
It's OK now ...